REPL in VS Code does not start in the project's environment anymore

I’ve noticed this only recently, I don’t know the reason. Until now, when I started a Julia REPL (e.g. Alt+J, Alt+O) the active environment was the one selected by the extension (as seen in “Julia env” in the lower bar). Now it always starts in the default environment (e.g. @v1.10.0).

Has anyone else noticed this?

I’m running VS Code 1.91.1 with Julia extension v1.103.2 on Windows. The first lines of the Julia Language Server output are:

[ Info: Starting LS with Julia 1.10.0
  Activating project at `[path-edited]\.vscode\extensions\julialang.language-julia-1.103.2\scripts\environments\languageserver\v1.10`
[ Info: Starting the Julia Language Server
[ Info: Symbol server store is at '[same-path-as-before]\AppData\Roaming\Code\User\globalStorage\julialang.language-julia\symbolstorev5'.
[ Info: Starting LS at 1722329173
2 Likes

For me it has always started in the default environment.

same here

Same for me on Linux

Me too, as of today. Windows 11, VS Code 1.91.1, Julia extension 1.103.2, Julia 1.10.4.

This issue is known and, if you switch to the prerelease version of the extension, should be fixed. See e.g. The environment is not set · Issue #3661 · julia-vscode/julia-vscode · GitHub

5 Likes