Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not start the julia language server in VS Code

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?

like image 466
Matomin Avatar asked Dec 08 '16 14:12

Matomin


People also ask

Could not start the Julia Language Server?

Could not start the julia language server. Make sure the configuration setting julia.executablePath points to the julia binary. "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.

Why is Julia not working in VS Code?

This can happen if the VS Code extension doesn't support the current version of Julia. 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.

Can I use juliapro with VS Code?

Thank you. As per instruktions. Don’t use JuliaPro, just downloa the normal Julia installer from the julialang.org homepage. I don’t believe there are instructions anywhere on the VS Code side of things to use JuliaPro. We automatically detect “normal” Julia installations.

Why can't I find the DLL backup file in Julia?

Try to check the path C:\Users\User\AppData\Local\Programs\Julia-1.7.3\lib\julia or any other path you have installed Julia and see if a sys.dll.backup exists there, together with a sys.dll file. Rename the sys.dll to sys.dll.old and rename the sys.dll.backup to sys.dll. Then restart julia or VS Code.


1 Answers

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.

like image 174
aliwimo Avatar answered Sep 23 '22 01:09

aliwimo