JunoLab / Juno.jl

MIT License
144 stars 23 forks source link

[BUG] Juno doesn't re-use pre-compilation from different IDEs #589

Open Datseris opened 4 years ago

Datseris commented 4 years ago

Whenever I use some package in Juno, that I have in dev form, Juno will precompile it. This sounds reasonable, but the moment I switch development environment, and use e.g. REPL or Jupyter, everything that Juno precompiled gets again precompiled. The same thing happens vice versa of course.

This doesn't make sense, why does it happen?

Versions: Windows 10, Julia 1.4, Julia packages latest stable, Atom packages latest stable.

pfitzseb commented 4 years ago

Probably because you're actually getting a different "environment" in Juno vs the REPL. And this happens because Juno already loads a bunch of packages, so things break if your Manifest specifies a different version.

Datseris commented 4 years ago

Can you please help me identify the different "environments" so that I can configure Juno to use the same? Because I only have Julia 1.4 and therefore assume that this is my only environment...

pfitzseb commented 4 years ago

This is going to happen whenever you do a pkg> activate Foo where the environment Foo specifies a version of one of Atom.jl's dependencies different from the one in Atom's Manifest.toml.

If you're only using the global environment then it's a different issue.

Datseris commented 4 years ago

This happens for both Global as well as Specific environments. So it does happen on activate Foo, but it also happens if I use just the global environment and just do using ThisPackage where ThisPackage is out for dev.

Datseris commented 4 years ago

different from the one in Atom's Manifest.toml.

I am confused by this statement. Packages don't have a Manifest file, or they shouldn't have, because the PRoject.toml is what specifies the dependencies, not the Manifest.toml. Where is this file so I can have a look?

pfitzseb commented 4 years ago

Yeah, that should've been "...different from the one in the global environment". Are you sure you're using the same Julia version everywhere?

Datseris commented 4 years ago

Yeah, I am certain I use the same Julia version everywhere.