JunoLab / Juno.jl

MIT License
144 stars 23 forks source link

[FR] Display packages loaded due to Juno #568

Open goretkin opened 4 years ago

goretkin commented 4 years ago

Because of https://github.com/JuliaLang/julia/issues/33210 it can be pretty tricky user experience if Juno causes packages to be loaded before the user gets to the prompt.

For example, as far as I can tell, the dependency on FlameGraphs.jl means that FileIO.jl is loaded. If the user tries to load FileIO from a different environment, with a different version, it will silently keep the old version (There is probably something that Julia could do differently here).

If there is a way to warn the user somehow, e.g. "warning, packages loaded into environment, do Juno.loaded_packages() to see", that would help, in my opinion.

pfitzseb commented 4 years ago

Yeah, this is tricky and annoying. You can find out the package version that's actually loaded like this.

Long term we plan to vendor all our dependencies, so this shouldn't be an issue anymore. Not sure if it's worth it to try to figure out how to show a warning only when it's relevant.