-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java error: ENOENT: no such file or directory, lstat '../libexec/openjdk.jdk/Contents/Home/bin/java' #601
Comments
Explicitly adding |
Version: 1.61.0 |
Our XML Language Service is written in Java, but we provide a binary of this XML Language Server, it's the reason why we say "doesn't require java". The only problem with binary that it loose the capability to extends vscode-xml with a custom vscode extension to manage your own completion, validation, etc inside XML. That's why we give give the capability to use vscode-xml with Java. The strategy to know if binary or Java XML Language Server must be used is the following:
You can force to use Binary if you wish (I think you should do that) https://github.com/redhat-developer/vscode-xml/blob/master/docs/Preferences.md#server-binary-mode |
What's the strategy for seeing if Java is found, and could it be switched to one that looks to see if the user has attempted to setup Java in VS Code? Perhaps sensing on "java.home" or similar being set? Honestly, I had no idea Java was installed on my system |
Interesting that https://github.com/redhat-developer/vscode-quarkus/issues/403#issuecomment-937615201 has the exact same error. I suppose the only thing in common is their Java finding logic. Both issues seem to be happening on MacOS. Could the installed directory structure be a little different there and we're not handling some case correctly ? |
@fbricon can you reproduce it? |
nope. this might be linked to a specific way of installing a JDK. If @pjlsergeant or @sebastienblanc can provide more info on how it was installed, it'd be helpful. |
Mine is installed via brew. However, the following looks interesting:
and this specifically takes us back to the original error:
in short: it looks like there's some very weird symlink tomfoolery going on? |
I'm able to reproduce on Linux now. I still say this is a bit of an oddity with symlinks we don't seem to support, but maybe we can do it easily. The part that seems odd to me is the fact that the actual So I created a setup where I have a JAVA_HOME of I suspect this is happening in
Update : But findLinkedFile doesn't exist in latest find-java-home! Looks like our issue was fixed in jsdevel/node-find-java-home#32 ( jsdevel/node-find-java-home@b0e43bd ) , so upgrading to at least |
- Fixes redhat-developer#601 - Update find-java-home to benefit from fix that correctly resolves relative symbolic links Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
- Fixes #601 - Update find-java-home to benefit from fix that correctly resolves relative symbolic links Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
The project proudly exclaims:
NO LONGER REQUIRES JAVA! since v0.15.0
However, attempting to install v0.18.0 from inside VS Studio Code gives me an Error in Runtime Status:
ENOENT: no such file or directory, lstat '../libexec/openjdk.jdk/Contents/Home/bin/java'
My Java knowledge is non-existant, but that sure looks like it's trying (and failing) to load Java? Any pointers?
The text was updated successfully, but these errors were encountered: