Answer a question

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.

What am I doing wrong?

Answers

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.

Logo

开发云社区提供前沿行业资讯和优质的学习知识,同时提供优质稳定、价格优惠的云主机、数据库、网络、云储存等云服务产品

更多推荐