Using Different Julia Version per Project in VSCode

Hi there,

I just installed juliaup to manage Julia versions - really great tool!

I have a bunch of older projects running on Julia 1.7/8/9, and I can switch the default Julia version in the command line before I run the script.

However, I was wondering if I could just directly set the Julia version within VSCode based on the Manifest.toml that has been used (ideally on a Windows OS)? I have read a thread on discourse where it did not seem to be possible at that time, but I was wondering if this has changed since then.

Moved to tooling/vscode

I would like to second this ! My usage is that several projects uses several different version sof julia, and I would love to be able (maybe via a .juliaup file ?) to pin the julia version (or juliaup chanel) that vscode uses on each projects. Is that possible ?

The julia.executablePath setting is currently machine-overridable, which means you can set it in .vscode/settings.json.
There’s currently no way to use Julia version information from inside the Manifest.toml or its file name (IIRC the Manifest-{MAJOR}.{MINOR}.toml proposal got merged).

1 Like

I have the current juliaup status:

lrnv@laptop ~ $ juliaup status
 Default  Channel  Version                   Update
          1.9.3    1.9.3+0.x64.w64.mingw32
       *  release  1.10.0+0.x64.w64.mingw32
lrnv@laptop ~ $

and then I setted a .vscode/settings.json as :

    "julia.executablePath": "julia +1.9.3"

but it did not succeed with the error “The terminal process failed to launch: A native exception occurred during launch (File not found: ).”

I guess I did somehting wrong… The issue is that I am on a windows machine, but I need colaborators on others OSs to be able to use the repo and have automatically the same julia version launched.

The classic way to handle this on Linux based HPC systems is to use the Modules environment.
I idly wonder if Juliaup can cooperate with Modules.

And yes, I am being of no help to Windows users.