英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论