Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prompt for environment migration on version upgrade #873

Open
j-adel opened this issue Mar 20, 2024 · 0 comments
Open

Prompt for environment migration on version upgrade #873

j-adel opened this issue Mar 20, 2024 · 0 comments

Comments

@j-adel
Copy link

j-adel commented Mar 20, 2024

Hello,

I've noticed that when upgrading to a new version of Julia, the packages from the previous version's environment are not recognized. This is because each minor and major Julia version (MAJOR.MINOR.PATCH) uses its own environment named vMAJOR.MINOR. When updating from one version to another, we switch from one environment to another, which doesn't contain any packages by default. This usually has to be done manually
From my understanding, the solution to this problem is to copy the environment folder (e.g., v1.1) and rename it to the new version (e.g., v1.3). Then, firing up the Julia REPL for the new version and executing ] instantiate ensures that everything is installed properly. reference

However, this manual process could be automated or at least prompted to the user during the upgrade process. It would be helpful if the upgrade process could ask the user whether they want to migrate the environment over to the new version such that all this is done automatically.

This would make the upgrade process smoother and less confusing, especially for new users who might not be aware of how Julia's environments work.
Thanks


Further details:

Commit bd47eca2c8 (2024-03-01 10:14 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 12 × Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, skylake)
Threads: 1 default, 0 interactive, 1 GC (on 12 virtual cores)
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant