How to get the source of code loading warnings?

I get this warning in one of my apps, seems to be Pkg related:

┌ Warning: Package Genie does not have SearchLight in its dependencies:
│ - If you have Genie checked out for development and have
│   added SearchLight as a dependency but haven't updated your primary
│   environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with Genie
└ Loading SearchLight into Genie from project dependency, future warnings for Genie are suppressed.

Despite searching everywhere where I could think of, I can’t find the source of the warning. Genie does not have SearchLight in its dependencies (and it shouldn’t have it) so I’m thinking that it might be some eval into Genie from an external package. Just can’t identify the culprit.

Not sure what is the value of warnings if there is no indication of the lines of code raising them. If I were to report an issue, as instructed, wouldn’t it be better to have this extra info for my report?

Weird. All my @warn print out with the line and file they happened on…

Yes, mine too - except this :slight_smile:

This comes from Pkg. Pkg is warning you that something is loading SearchLight without having declared which SearchLight it means (at the level of UUID, which is the real identity of a package). So it’s finding a random package whose name happens to be SearchLight and hoping for the best.

Several of Genie’s plugins load SearchLight, so this warning may not be surprising:

Technically, it is independent of Pkg and comes from Julia’s code loading:

1 Like

Thanks @tim.holy

The plugins folder is not yet used - it is just stuff I dumped there to be converted into plugins at some point in the future. The files are not included nor is the folder added to LOAD_PATH. I expected they won’t be picked up.


Update 1: it’s definitely not those, I removed everything that was not actively used by Genie and run a search which didn’t return “SearchLight” at all. So my guess is, something gets evaled into Genie.

Anyway, it would be great if Julia would share the guilty file and line triggering the warning.