VSCode repl in WSL terminalserver.jl not found

Since this morning, with update of VSCode Julia extension to 1.173.2, I have an error message when (using VSCode inside WSL) starting REPL in a WSL directory. It says terminalserver.jl not found, with a Windows-style path. I checked, the terminal server.jl file is there in my ext4/wsl .vscode-server directory.

(note that VSCode still work works OK in windows)

Is this a bug in the update ?

With Julia VSCode extension 1.174.2, still can’t use Julia in a WSL directory. Error is now IOError: connect : unknown error then REPL is not connected to VSCode, so it is impossible to run any Julia code or file from VSCode (but I still have Julia prompt)

Issue opened on GitHub repo, #3981

Hope to have some news soon?

From GitHub issue dialog, I found a (temp) fix thanks to @pfitzseb . The fix is to set the extension parameter juliaexecutablePath (which previously was empty) to julia. Then the REPL starts in the wsl directory.

However, then the same setting then does not work on pure windows11 (julia command not found). I have to revert to empty parameter to get it working again on windows.

Anyway I can again run code in WSL, so will mark it as a (temp) solution.

BTW I think I can now explain the different error messages I got : code, launched from WSL, uses a windows process. When it tries to start the REPL, as the executablepath is not defined, it find the default windows installation and launch it (verified with versioninfo()), not the WSL/ubuntu one. So I get a windows Julia repl running into a WSL directory, not WSL native one !

Is this a correct explanation ?

Thanks again @pfitzseb for your quick reaction, (and @dprossel for sharing experience!)
J.

1 Like

For the record, new extension version 1.176.2 works (with default empty executablePath ) on both Windows and WSL. So trouble definitively solved. Thanks @pfitzseb !

3 Likes