vscode ubuntu / julia ubuntu商店版本中的julia二进制设置错误

发布于 2025-02-13 04:55:47 字数 281 浏览 1 评论 0原文

背景:

您通过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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

淡忘如思 2025-02-20 04:55:47

这不是一个问题,而是与从Ubuntu Store/Snap下载的Julia Lang在处理VS代码时提出的问题/错误的答案。错误消息如下:

无法启动朱莉娅语言服务器。确保配置设置Julia.ecutable Path指向Julia Binary。

要解决此问题,您必须指向Julia binary,换句话说,julia可执行应用程序。解决问题的可能解决方案可能是:

首先将以下路径粘贴到朱莉娅可执行路径。粘贴并重新启动与代码。

/snap/julia/current/bin/julia

在您的设置内。 (仅在您通过Ubuntu Store下载Julia时才适用)

"julia.symbolCacheDownload": true,
"julia.enableTelemetry": false,
"julia.executablePath": "/snap/julia/current/bin/julia"

如果这不起作用,请尝试以下内容:

  1. search julia在扩展市场中

  2. 下载JuliaJulia Insider

  3. 您会收到一个错误,说您不能同时安装(active)

  4. 卸载Julia Insider

  5. 重新启动VS代码

  6. 通过使用文件扩展(.jl)j创建文件,如“(j)ulia” l,如“(l)arguage”

  7. 使用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.

/snap/julia/current/bin/julia

Inside your settings.json you should have the following. ( Applicable only if you downloaded Julia through the Ubuntu Store )

"julia.symbolCacheDownload": true,
"julia.enableTelemetry": false,
"julia.executablePath": "/snap/julia/current/bin/julia"

If that doesn't work try the following:

  1. Search Julia in the Extensions Marketplace

  2. Download Julia and Julia Insider

  3. You will get an error saying you can't have both installed (active)

  4. Uninstall Julia Insider

  5. Restart VS Code

  6. Test by creating a file with the file extention ( .jl ) j, as in "(J)ulia" l, as in "(L)anguage"

  7. Execute with CTRL+F5

Happy Julia Coding!

眉目亦如画i 2025-02-20 04:55:47

我还试图加载朱莉娅的快照并遇到该错误消息。

我的问题是,我有一个目录在我的$ PATH变量中指向旧版本的朱莉娅。该旧条目被snapd/usr/bin/snap二进制加载Julia Snap的二进制文件忽略。但是,该路径碎片似乎使VSCODE和朱莉娅语言服务器更加仔细地关注路径。

就我而言,我已经卸载了Julia Snap并安装了 juliaup 。似乎是朱莉娅官方版本经理。

然后,从命令行启动朱莉娅(Julia)替补,以确保朱莉娅(Julia)有效,检查了朱莉亚普(Juliaup)附加到我的.bashrc文件,然后重新安装了VSCODE扩展名。

安装朱莉亚和VSCODE朱莉娅扩展程序时,

  • 打开一个.jl文件
  • 在终端面板中
  • ,单击“输出”选项卡。将当前的选择框中的当前选择更改为“ Julia”。

读取输出

Trying to locate Julia binary...
Juliaup not found, locating Julia by other means.
The identified Julia executable is "/snap/julia/current/bin/julia" with args "".
The current PATH environment variable is "/home/knut/bin:...:/opt/apps/julia-1.2.0/bin...

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,

  • Open a .jl file
  • In the terminal panel, Click the "OUTPUT" tab.
  • Change the current choice in the selection box to "Julia".

Read output

Trying to locate Julia binary...
Juliaup not found, locating Julia by other means.
The identified Julia executable is "/snap/julia/current/bin/julia" with args "".
The current PATH environment variable is "/home/knut/bin:...:/opt/apps/julia-1.2.0/bin...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文