无法使用Mason LSP-Zero安装Java语言服务器。

huangapple go评论72阅读模式
英文:

Unable to install java-language-server with mason lsp-zero

问题

我正在使用lsp-zero,它使用mason来安装所有东西,但每当我尝试安装java-language-server时,我会收到错误消息。

任何帮助都将不胜感激。

每当我执行:LspInstall并选择第一个选项时,它显示如下:

[8/8] spawn: bash失败,退出代码为127,信号为0。

我已经尝试安装不同版本的java-language-server,但没有成功。

英文:

I am using lsp-zero which uses mason to install everything but whenever I try to install java-language-server I get the error.

Any help is appreciated.

Whenever i do :LspInstall and choose the first option it shows this

\[8/8\] spawn: bash failed with exit code 127 and signal 0.

I already tried installing diff versions of java-language-server but didn't work.

答案1

得分: 2

不确定你是否解决了这个问题,但我会为其他寻找答案的人发表评论。

每当我在新的 nvim 设置中遇到安装 lsp 时遇到问题时,问题往往与我没有安装所需的依赖项有关。

尝试以下内容:

  • 安装/更新 Java
  • 更改你的 zsh 上 bash 的权限(chmod +x /bin/bash
  • 检查你是否安装了所有 java-language-server 的依赖项
  • 使用 jdtls 替代
英文:

Unsure if you've resolved this but I'll comment for others searching for answers.

Whenever I run into trouble installing lsp on a new nvim setup, the issue tends to be related to me not having a dependency installed.

Things to try:

  • Install/Update Java
  • Change the permissions for bash on your zsh (chmod +x /bin/bash)
  • Check you have all dependencies installed for java-language-server
  • Use jdtls instead

huangapple
  • 本文由 发表于 2023年6月13日 02:13:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/76459274.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定