You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error in install due to java-debug-adapter jar file version mismatch #104
I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
0.9.4
Operating system/version
LMDE 6 / MacOs
Describe the bug
Installing this plugin failed due to a version mismatch between the downloaded the version of java-debug-adapter requested to download by nvim-java and the version that mason-registry tries to link.
Version 52 of java-debug-adapter downloaded contains the { name = 'java-debug-adapter', version = '0.52.0' },
Downloading file "https://open-vsx.org/api/vscjava/vscode-java-debug/0.52.0/file/vscjava.vscode-java-debug-0.52.0.vsix"…
[...ommited unpacking log...]
Link target "/home/distractedpen/.local/share/nvim/mason/packages/java-debug-adapter/extension/server/com.microsoft.java.debug.plugin-0.50.0.jar" does not exist.
Mason registry updated a few hours ago to java-debug-server version 55 which contains server version 50, version 52.0 of java-debug-adapter contains server version 47.0.
Steps To Reproduce
Update nvim-mason to the latest version (1.9.0)
Fresh install nvim-java
Expected Behavior
java-debug-adapter's server version file should match the version linked to by mason-registry.
Hi @s1n7ax,
I haven't pinned certain versions of either of these in my config, and the commit hash does not make it into my lazy lock file because the dependency (java-debug-adapter) fails to install
@glennmca-dev java-debug-adapter & jdtls is not installed through Lazy so there is no commit hash. It's using mason. You should see the version it's trying to install if it fails
Failed
◍ java-debug-adapter
▶ # [26/26] Link target "/Users/olrtg/.local/share/nvim/mason/packages/java-debug-adapter/extension/server/com.microsoft.java.debug.plugin-0.53.1.jar" does not exist.
If you need more info let me know! I don't do much java development so is annoying getting the Mason popup on every start.
@glennmca-dev java-debug-adapter & jdtls is not installed through Lazy so there is no commit hash. It's using mason. You should see the version it's trying to install if it fails
◍ jdtls
Java language server.
installed version v1.37.0
homepage https://github.com/eclipse/eclipse.jdt.ls
languages Java
categories LSP
executables jdtls
java_debug_adapter (failing to install) the log i pasted above shows the output when it fails, if i press i inside mason, it does install, with the following version, but when i quit and re-enter nvim, it opens the mason window and fails again:
◍ java-debug-adapter
The debug server implementation for Java. It conforms to the debugger adapter protocol.
installed version 0.58.1
homepage https://github.com/microsoft/java-debug
languages Java
categories DAP
@chetra-seng Yeah it made the experience better for me lol, at least mason doesn't show up every time i open nvim now. I'm not a maintainer so i don't know how well that version will play with the rest of the pinned versions, but considering its just a patch version bump, i don't see any reason why it wouldn't work, there shouldn't be any breaking changes. @s1n7ax is there a reason we pin versions? how come we don't just use latest?
Activity
VICTORVICKIE commentedon Jan 7, 2024
As mentioned #103 (comment), I am getting this error after mason update.
Edit:
Is it possible to make DAP Configurable / Opt In Feature?
s1n7ax commentedon Jan 7, 2024
@VICTORVICKIE I think there is a workaround.
I think this should be a workaround
VICTORVICKIE commentedon Jan 7, 2024
This doesnt work either, once i uncomment, it still tries to download and mason window pops every time i launch nvim
s1n7ax commentedon Jan 7, 2024
@VICTORVICKIE my bad. I thought java-debug coming from nvim-java reg. You will have to wait till this is fixed from my end.
VICTORVICKIE commentedon Jan 7, 2024
ok, also can you make it so we can opt out of nvim-java-dap?
since this won't break existing configurations?
or we can do that already?
s1n7ax commentedon Jan 7, 2024
@VICTORVICKIE Nope
s1n7ax commentedon Jan 7, 2024
@distractedpen thanks for reporting immediately
s1n7ax commentedon Jan 7, 2024
Cause of this issue is tracked here to find solutions in the future
Java for Neovim (view)
glennmca-dev commentedon Dec 21, 2024
Has there been any progress on this?
I'm getting a similar issue, even with this in my config:
java_debug_adaptertries to install with mason every time i start nvim and fails with this error:system info:
glennmca-dev commentedon Dec 21, 2024
Sorry for necrothreading, i can open a new issue if needed.
s1n7ax commentedon Dec 21, 2024
@glennmca-dev what versions of jdtls and java-debug-adapter causing this error?
glennmca-dev commentedon Dec 21, 2024
Hi @s1n7ax,
I haven't pinned certain versions of either of these in my config, and the commit hash does not make it into my lazy lock file because the dependency (java-debug-adapter) fails to install
s1n7ax commentedon Dec 21, 2024
@glennmca-dev What are the currently installed versions of jdtls and java-debug-adapter?
s1n7ax commentedon Dec 22, 2024
@glennmca-dev java-debug-adapter & jdtls is not installed through Lazy so there is no commit hash. It's using mason. You should see the version it's trying to install if it fails
olrtg commentedon Dec 22, 2024
Hey @s1n7ax for me is failing like this:
If you need more info let me know! I don't do much java development so is annoying getting the Mason popup on every start.
glennmca-dev commentedon Dec 22, 2024
@s1n7ax Apologies, i'll copy the info below:
jdtls:
java_debug_adapter (failing to install) the log i pasted above shows the output when it fails, if i press
iinside mason, it does install, with the following version, but when i quit and re-enter nvim, it opens the mason window and fails again:glennmca-dev commentedon Dec 23, 2024
i seem to have fixed it by changing the version pinned in
~/.local/share/nvim/lazy/nvim-java/lua/java/startup/mason-dep.luato 0.58.1chetra-seng commentedon Dec 23, 2024
@glennmca-dev Dude, you saved the day
glennmca-dev commentedon Dec 23, 2024
@chetra-seng Yeah it made the experience better for me lol, at least mason doesn't show up every time i open nvim now. I'm not a maintainer so i don't know how well that version will play with the rest of the pinned versions, but considering its just a patch version bump, i don't see any reason why it wouldn't work, there shouldn't be any breaking changes.
@s1n7ax is there a reason we pin versions? how come we don't just use latest?