redhat-developer / redhat-developer/vscode-java
is there a problem with java binaries downloaded when using vscode server with nixos?
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the extension output and the bundled binary at /home/auser/.vscode-server/extensions/redhat.java-1.27.0-linux-x64/jre/17.0.10-linux-x86_64/bin/java, then reproduce the reported shell execution on NixOS. Compare that behavior with the listed VS Code, Java extension, and JDK versions. Done means the bundled Java launches on the reported environment and the Java language server connects successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, nixos, vscode
- Domain
- developer-experience, devtools, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100