vscode ubuntu / julia ubuntu商店版本中的julia二进制设置错误
背景:
您通过Ubuntu Store / Snap Store安装了Julia,并且使用VS代码进行编码。当您下载必要的扩展名时,您会得到一个弹出窗口,上面写着:
Could not start the Julia language server. Make sure the configuration setting julia.executablePath points to the Julia binary.
经过一番挖掘,我找到了一些有关此问题的解决方案!
Background:
You installed Julia through the Ubuntu Store / Snap Store and you are using VS Code to do your coding. As you download the necessary extensions, you get a pop up that says:
Could not start the Julia language server. Make sure the configuration setting julia.executablePath points to the Julia binary.
After some digging, I found a couple of solutions regarding this problem!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这不是一个问题,而是与从Ubuntu Store/Snap下载的Julia Lang在处理VS代码时提出的问题/错误的答案。错误消息如下:
无法启动朱莉娅语言服务器。确保配置设置Julia.ecutable Path指向Julia Binary。
要解决此问题,您必须指向
Julia binary
,换句话说,julia可执行应用程序。解决问题的可能解决方案可能是:首先将以下路径粘贴到朱莉娅可执行路径。粘贴并重新启动与代码。
在您的设置内。 (仅在您通过Ubuntu Store下载Julia时才适用)
如果这不起作用,请尝试以下内容:
search
julia
在扩展市场中下载
Julia
和Julia Insider
您会收到一个错误,说您不能同时安装(active)
卸载
Julia Insider
重新启动VS代码
通过使用文件扩展(.jl)j创建文件,如“(j)ulia” l,如“(l)arguage”
中
使用
ctrl
+执行F5
Happy Julia编码!
Rather than a question, this is the answer to an issue/error raised by VS Code when dealing with Julia lang downloaded from the Ubuntu Store/Snap. The error message is the following:
Could not start the Julia language server. Make sure the configuration setting julia.executablePath points to the Julia binary.
To solve this issue you have to point to the
Julia Binary
in other words, to the Julia executable application. The possible solutions to your problem may be:Start by pasting the following path to your Julia Executable Path. Paste it and restart VS Code.
Inside your settings.json you should have the following. ( Applicable only if you downloaded Julia through the Ubuntu Store )
If that doesn't work try the following:
Search
Julia
in the Extensions MarketplaceDownload
Julia
andJulia Insider
You will get an error saying you can't have both installed (active)
Uninstall
Julia Insider
Restart VS Code
Test by creating a file with the file extention ( .jl ) j, as in "(J)ulia" l, as in "(L)anguage"
Execute with
CTRL
+F5
Happy Julia Coding!
我还试图加载朱莉娅的快照并遇到该错误消息。
我的问题是,我有一个目录在我的$ PATH变量中指向旧版本的朱莉娅。该旧条目被
snapd
或/usr/bin/snap
二进制加载Julia Snap的二进制文件忽略。但是,该路径碎片似乎使VSCODE和朱莉娅语言服务器更加仔细地关注路径。就我而言,我已经卸载了Julia Snap并安装了 juliaup 。似乎是朱莉娅官方版本经理。
然后,从命令行启动朱莉娅(Julia)替补,以确保朱莉娅(Julia)有效,检查了朱莉亚普(Juliaup)附加到我的
.bashrc
文件,然后重新安装了VSCODE扩展名。安装朱莉亚和VSCODE朱莉娅扩展程序时,
读取输出
I also tried to load the julia snap and encountered that error message.
My problem was that I had a directory pointing an older version of julia in my $PATH variable. That old entry gets ignored by the
snapd
or the/usr/bin/snap
binary which loads the julia snap. However that PATH fragment seems to confuse VSCode and the Julia Language server which looked at PATH more closely.In my case I've uninstalled the Julia snap and installed juliaup. Seems to be the official Julia version manager.
Then started the julia REPL from the commandline to make sure julia works, checked what juliaup appended to my
.bashrc
file, and then reinstalled the VSCode extension.When snap Julia and VSCode Julia extension installed,
Read output