redhat-developer / redhat-developer/vscode-java
is there a problem with java binaries downloaded when using vscode server with nixos?
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
The buitin java is downloaded, but don't execute on nixos!? all the file is there...
extension output:
[Error - 2:55:46 PM] Language Support for Java client: couldn't create connection to server. Launching server using command /home/auser/.vscode-server/extensions/redhat.java-1.27.0-linux-x64/jre/17.0.10-linux-x86_64/bin/java failed. Error: spawn /home/auser/.vscode-server/extensions/redhat.java-1.27.0-linux-x64/jre/17.0.10-linux-x86_64/bin/java ENOENT
buitin java folder:
ls /home/auser/.vscode-server/extensions/redhat.java-1.27.0-linux-x64/jre/17.0.10-linux-x86_64/bin/
jar java javadoc jcmd jdb jdeps jhsdb jinfo jmap jpackage jrunscript jstack jstatd rmiregistry
jarsigner javac javap jconsole jdeprscan jfr jimage jlink jmod jps jshell jstat
what happens when executing:
$ /home/auser/.vscode-server/extensions/redhat.java-1.27.0-linux-x64/jre/17.0.10-linux-x86_64/bin/java
bash: /home/auser/.vscode-server/extensions/redhat.java-1.27.0-linux-x64/jre/17.0.10-linux-x86_64/bin/java: cannot execute: required file not found
on a forum a man is saying that he get errors many times but the install succed if he "sudo" vscode [https://discourse.nixos.org/t/setting-up-java-dev-env-vscode-with-redhat-java/2222]
Environment
- Operating System: NixOs(host), windows(client)
- JDK version: 17
- Visual Studio Code version: 1.86.0
- Java extension version: v1.27.0
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず拡張機能の出力と /home/auser/.vscode-server/extensions/redhat.java-1.27.0-linux-x64/jre/17.0.10-linux-x86_64/bin/java にあるバンドルされたバイナリを確認し、その後、NixOS で報告されたシェル実行を再現します。その動作を、記載されている VS Code、Java 拡張機能、および JDK のバージョンと比較します。報告された環境でバンドルされた Java が起動し、Java 言語サーバーが正常に接続できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, nixos, vscode
- 領域
- developer-experience, devtools, operating-systems
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100