9
votes

I'm getting this error in VS Code:

Could not start the julia language server. Make sure the configuration setting julia.executablePath points to the julia binary.

In user settings I put

"julia.executablePath": "c:\\Program Files\\Julia\\Julia-0.5.0\\bin\\julia.exe"

which is a correct executable path.

Julia works without a problem in console and VS Code worked fine with older extension 0.4.2. I've tried reinstalling both the extension and VS Code, but it didn't help.

I've been trying to fix the issue for some time, but I am running out of ideas. Can someone point out what am I doing wrong?

6

6 Answers

5
votes

VS Code settings don't seem to always play nice with backslashes. Try instead single slashes, even on Windows:

"julia.executablePath": "c:/Program Files/Julia/Julia-0.5.0/bin/julia.exe"

It may, however, also be a problem with the blank in 'Program Files', in which case the legacy 8.3 filename convention could work:

"julia.executablePath": "c:/PROGRA~1/Julia/Julia-0.5.0/bin/julia.exe"

Note that you would typically have both 'C:\PROGRA~1' and 'C:\PROGRA~2' pointing to 'C:\Program Files' and 'C:\Program Files (x86)', respectively. Find the correct one from the console.

1
votes

https://github.com/JuliaEditorSupport/julia-vscode/issues/405

This can happen if the VS Code extension doesn't support the current version of Julia.

0
votes

Also check that the path is pointing to the julia.exe executable inside the bin folder.

C:\Users\yourname\AppData\Local\Julia-0.5.0\bin\julia.exe

because there is also another one that doesn't work.

C:\Users\yourname\AppData\Local\Julia-0.5.0\julia.exe

0
votes

Reinstalling Julia solved this for me, I tried the previous answers

0
votes

Have a look if the 'LanguageServer' package is actually installed/somehow uninstalled, this happened to me. After manually installing it, it was all fine and dandy again.

Indexing all the packages still takes ages, though.

enter image description here

0
votes

I had the same problem, just run Julia REPL and switch to pkg mode with ] and add LanguageServer package with add LanguageServer and restart vs code.