Hi,
I was succesfully using SSH extension in VSCode to code in julia on a remote machine, but it broke down without any obvious reason. When I start start the VScode and connect to the server, everything loads as usual, but julia does not start and it says
“Could not start the Julia language server. Make sure the configuration setting julia.executablePath points to the Julia binary.”
The julia executable path is set on the local machine and it works. Is there a way to set it for the remote machine? Julia is installed there and runs from the command line with no problems.
Thanks for any advice.
There was an update to the Julia extension a few weeks back which changed how the binary path is resolved, so maybe you hadn’t updated the extension on the remote in a while and only ran into the issue after the update?
I have the same issue: the SSH extension was working at some point with the Julia: I could run code inline and it was lauching a REPL.
Now when I open a remote session, it says
“Could not start the Julia language server. Make sure the configuration setting julia.executablePath points to the Julia binary.”
It is university cluster, I set manually the path to in my case “/mnt/beegfs/softs/opt/core/julia/1.6.1/bin/” as suggested by @marius311. But the error still is here.
Even if I do ml load julia in a terminal, julia in a terminal runs the REPL, but the extension still do not work.
By the way, how should I start the Julia extension (if it works) directly in an interactive node (and not login node) which I launch typically with
I have solved this by pirating Sockets.connect(path) to route the socket vs code uses to talk to the REPL through TCP using socat before passing it on (basically pointing the julia executable to a script which does all of this before running the launch command). I don’t think I can genuinely recommend this approach so if there are options I wouldn’t mind knowing about them.
I suppose that if the node has ssh enabled you might have more options, such as running vs code remotely against the interactive node.