我正在尝试使用java-language-server vscode 扩展,但我收到扩展未启动的错误:
[Error - 11:07:14 AM] Starting client failed
Error: spawn UNKNOWN
at ChildProcess.spawn (internal/child_process.js:403:11)
at Object.spawn (child_process.js:570:9)
at c:\Users\tdalt\.vscode-insiders\extensions\georgewfraser.vscode-javac-0.2.39\node_modules\vscode-languageclient\lib\main.js:357:40
看起来该行正在尝试运行此脚本:dist\lang_server_windows.sh
. 当我手动运行该脚本时,我收到此错误:
/mnt/c/Users/tdalt/.vscode-insiders/extensions/georgewfraser.vscode-javac-0.2.39/dist/launch_windows.sh: 13: /mnt/c/Users/tdalt/.vscode-insiders/extensions/georgewfraser.vscode-javac-0.2.39/dist/windows/bin/java: not found
这让我认为在该脚本运行之前需要运行一些东西。
没有比这更深入的了。我听说过有关此扩展的好消息,但无法使其正常工作。有没有人遇到过这个问题或能够帮助我解决它?
我的java -version
结果在
openjdk version "11.0.9.1" 2020-11-04 LTS
OpenJDK Runtime Environment Zulu11.43+55-CA (build 11.0.9.1+1-LTS)
OpenJDK 64-Bit Server VM Zulu11.43+55-CA (build 11.0.9.1+1-LTS, mixed mode)
操作系统:Windows 11 Home v22000.493
VS Code:VSCode-Insiders(最新版)
附带说明一下,如果有人有一个很好的 Java 的 vscode bazel 设置,我很想听听有关设置的任何提示。