Closed r4ks closed 7 months ago
You could go with nix-ld
instead of this project. See https://github.com/nix-community/nixos-vscode-server/issues/67 for a related discussion and an example. You could probably just manually patch /home/auser/.vscode-server/extensions/redhat.java-1.27.0-linux-x64/jre/17.0.10-linux-x86_64/bin/java
, checking with ldd
what needs patching and such, though this can be involved if you are not familiar with what is needed to do so. You could also try overwriting the java bin (while keeping the path) with one of NixOS of the same version that is already patched. And if that needs to be automated, maybe try the postPatch
option of this project. I am closing this issue, as despite being related, I consider this out of scope.
Please help, I can't get java language server running;
[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
is there a workround for this problem? vscode builtin java has some problems with nix second this thread [(https://github.com/redhat-developer/vscode-java/issues/2276)]