无法在VS Code中启动julia语言服务器(Could not start the julia language server in VS Code)
我在VS代码中收到此错误:
无法启动julia语言服务器。 确保配置设置julia.executablePath指向julia二进制文件。
在我放的用户设置中
"julia.executablePath": "c:\\Program Files\\Julia\\Julia-0.5.0\\bin\\julia.exe"
这是一个正确的可执行路径。
Julia在控制台中没有问题,VS Code在旧版扩展0.4.2运行良好。 我已经尝试重新安装扩展和VS代码,但它没有帮助。
我一直试图解决这个问题一段时间,但我的想法已经不多了。 有人能指出我做错了什么吗?
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?
原文:https://stackoverflow.com/questions/41041938
2020-02-17 07:19
满意答案
VS代码设置似乎总是与反斜杠一起使用。 尝试使用单斜杠,即使在Windows上:
"julia.executablePath": "c:/Program Files/Julia/Julia-0.5.0/bin/julia.exe"
但是,“Program Files”中的空白也可能存在问题,在这种情况下,旧的8.3文件名约定可以起作用:
"julia.executablePath": "c:/PROGRA~1/Julia/Julia-0.5.0/bin/julia.exe"
请注意,您通常将'C:\ PROGRA~1'和'C:\ PROGRA~2'分别指向'C:\ Program Files'和'C:\ Program Files(x86)'。 从控制台中找到正