Updated julia via juliaup, packages are no longer avaiable

With Julia 1.9.0 being released, I ran juliaup update in my (ubuntu 22.04) terminal to get the latest version. when I then start julia I got a

ERROR: LoadError: ArgumentError: Package OhMyREPL not found in current path.
- Run `import Pkg; Pkg.add("OhMyREPL")` to install the OhMyREPL package.

error (I have using OhMyREPL ran automatically on Julai startup). Also, ]status gives

(@v1.9) pkg> status
Status `~/.julia/environments/v1.9/Project.toml` (empty project)

Ut seems like all the packages I had in my default environment, given the update, have disappeared. Is there any good way to copy these over when I perform juliaup update?

There is one default environment per minor version of the language, as you will find if you look at your folder .julia/environments. Hence the (v1.8) which used to appear before the julia> prompt.

Sofar I have found no better solution than reinstalling my base packages for each minor version (which doesn’t happen all too often anyway).

1 Like

Thank you :slight_smile: , that is good to know.

You can copy .julia/environments/v1.8/Project.toml to .julia/environments/v1.9/Project.toml if you want to have the same packages.

4 Likes

I had to create the .julia/environments/v1.9/ folder, but once I did, now it seems to work. Thanks :slight_smile: