You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A common issue folks run into with JLSO files is running Pkg.activate(jlso_file) where an already loaded package needs to switch versions. I'm not sure this'll work, but it'd be nice if we could use Revise.jl to handle switching versions of already loaded packages. Particularly for the do-block style version where we want to switch version, do some work, and switch back.
NOTE: The current behaviour isn't specific to JLSO.jl, but rather expected behaviour in Julia and Pkg.activate.
A package can only be loaded once per Julia session. If you have run import Example in the current Julia session, you will have to restart Julia and rerun activate tutorial in the Pkg REPL. Revise.jl can make this process significantly more pleasant, but setting it up is beyond the scope of this guide.
A common issue folks run into with JLSO files is running
Pkg.activate(jlso_file)
where an already loaded package needs to switch versions. I'm not sure this'll work, but it'd be nice if we could use Revise.jl to handle switching versions of already loaded packages. Particularly for the do-block style version where we want to switch version, do some work, and switch back.https://github.com/invenia/JLSO.jl/blob/master/src/metadata.jl#L63
NOTE: The current behaviour isn't specific to JLSO.jl, but rather expected behaviour in Julia and
Pkg.activate
.https://docs.julialang.org/en/v1/stdlib/Pkg/
Maybe the solution is to not depend directly on Revise.jl, but rather to include documentation on how it can be used to address that issue?
The text was updated successfully, but these errors were encountered: