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
I see. It's due to the file you have opened is not being a gradle/maven/eclipse project. However, sounds like this is something we should be able to debug. I will look into it. BTW, you can drag and drop videos to the issue.
opening up neovim will invoke and fail via mason: Downloading file "https://open-vsx.org/api/vscjava/vscode-java-debug/0.52.0/file/vscjava.vscode-java-debug-0.52.0.vsix"…
but if you press i yourself this will be invoked and succeed: ▶ # [2/2] Downloading file "https://open-vsx.org/api/vscjava/vscode-java-debug/0.55.0/file/vscjava.vscode-java-debug-0.55.0.vsix"…
I see. It's due to the file you have opened is not being a gradle/maven/eclipse project. However, sounds like this is something we should be able to debug. I will look into it. BTW, you can drag and drop videos to the issue.
Thank you for looking into this. and thank you for the hard works 💪
PS: my video size was too large 😢
@VICTORVICKIE This is not related to nvim-java but you can fix it by updating mason.nvim. However, after update, you might face this issue. Please leave a comment if so.
@s1n7ax Yes, this issue was actually the first issue that I encountered before #104. Updating mason did fix this issue (as they added openvsx download support in version 1.9.0), but then I started getting #104.
I am running Mason version v1.9.0 and have the following installed java-debug-adapter, java-test, jdtls. Dap does not automatically configure so I run the JavaDapConfig command and get the following error:
Configuring DAP
dap configuration failed
RPC[Error] code_name = MethodNotFound, message = "No delegateCommandHandler for vscode.java.resolveMainClass"
stack traceback:
^I...al/share/nvim/lazy/nvim-java/lua/java/handlers/error.lua:18: in function 'error_handler'
^I...e/nvim/lazy/nvim-java-core/lua/java-core/utils/async.lua:32: in function 'callback'
^I...nvim-java-core/lua/java-core/ls/clients/jdtls-client.lua:47: in function 'handler'
^I....mount_nvimQLxuJP/usr/share/nvim/runtime/lua/vim/lsp.lua:1517: in function ''
^Ivim/_editor.lua: in function <vim/_editor.lua:0>
Error executing vim.schedule lua callback: ...al/share/nvim/lazy/nvim-java/lua/java/handlers/error.lua:28:
dap configuration failed
RPC[Error] code_name = MethodNotFound, message = "No delegateCommandHandler for vscode.java.resolveMainClass"
stack traceback:
...al/share/nvim/lazy/nvim-java/lua/java/handlers/error.lua:18: in function 'error_handler'
...e/nvim/lazy/nvim-java-core/lua/java-core/utils/async.lua:32: in function 'callback'
...nvim-java-core/lua/java-core/ls/clients/jdtls-client.lua:47: in function 'handler'
....mount_nvimQLxuJP/usr/share/nvim/runtime/lua/vim/lsp.lua:1517: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
stack traceback:
[C]: in function 'error'
...al/share/nvim/lazy/nvim-java/lua/java/handlers/error.lua:28: in function 'error_handler'
...e/nvim/lazy/nvim-java-core/lua/java-core/utils/async.lua:32: in function 'callback'
...nvim-java-core/lua/java-core/ls/clients/jdtls-client.lua:47: in function 'handler'
....mount_nvimQLxuJP/usr/share/nvim/runtime/lua/vim/lsp.lua:1517: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
Reacted by Raphael Fagundes, Erlon Bié and Mateus Pereira
@erlonbie thank you so much! I didn't even noticed I misplaced that Curley brace. I haven't been working on Java lately but will try that out on my next Java project.
Hey guys, I've been facing the same issue for some time. As a result, dap is not working as expected and the springboot lsp does not start either. Any ideas on how to get around this problem?
Note: the version combination looks broken right now for testing. I'm not sure which caused it. If you find version combination that works, let me know.
Activity
[-]bug: lazyvim install / dap error in java file[/-][+]bug: dap error in java file[/+]s1n7ax commentedon Jan 6, 2024
I see. It's due to the file you have opened is not being a gradle/maven/eclipse project. However, sounds like this is something we should be able to debug. I will look into it. BTW, you can drag and drop videos to the issue.
soeguet commentedon Jan 6, 2024
This might help:
opening up neovim will invoke and fail via mason:
Downloading file "https://open-vsx.org/api/vscjava/vscode-java-debug/0.52.0/file/vscjava.vscode-java-debug-0.52.0.vsix"…but if you press i yourself this will be invoked and succeed:
▶ # [2/2] Downloading file "https://open-vsx.org/api/vscjava/vscode-java-debug/0.55.0/file/vscjava.vscode-java-debug-0.55.0.vsix"…VICTORVICKIE commentedon Jan 7, 2024
I am encountering similar issue, but also it seems DAP configuration fails too
https://github.com/VICTORVICKIE/dotfiles/blob/main/nvim/lua/plugins/mason-lsp-config.lua
Please suggest if the lsp plugin needs to be setup differently
nyjackie commentedon Jan 7, 2024
Thank you for looking into this. and thank you for the hard works 💪
PS: my video size was too large 😢
s1n7ax commentedon Jan 7, 2024
@nyjackie https://handbrake.fr/ You are welcome.
s1n7ax commentedon Jan 7, 2024
@VICTORVICKIE This is not related to nvim-java but you can fix it by updating
mason.nvim. However, after update, you might face this issue. Please leave a comment if so.#104
distractedpen commentedon Jan 7, 2024
@s1n7ax Yes, this issue was actually the first issue that I encountered before #104. Updating mason did fix this issue (as they added openvsx download support in version 1.9.0), but then I started getting #104.
s1n7ax commentedon Jan 8, 2024
@distractedpen are you saying that #104 is not fixed?
distractedpen commentedon Jan 11, 2024
No issues anymore after updating, sorry for the confusion.
marvindore commentedon Jan 18, 2024
I am running Mason version v1.9.0 and have the following installed
java-debug-adapter, java-test, jdtls. Dap does not automatically configure so I run theJavaDapConfigcommand and get the following error:erlonbie commentedon Apr 2, 2024
same issue as @marvindore with all plugins updated
erlonbie commentedon Apr 4, 2024
@marvindore I found that in your configuration the config function should be outside
dependencies. I puted:inside it and it fixed.
marvindore commentedon Apr 4, 2024
@erlonbie thank you so much! I didn't even noticed I misplaced that Curley brace. I haven't been working on Java lately but will try that out on my next Java project.
s1n7ax commentedon Apr 12, 2024
Please try again. If not working make the current directory a git repo and try again. Let me know the result.
manumoreno commentedon Dec 17, 2024
Hey guys, I've been facing the same issue for some time. As a result, dap is not working as expected and the springboot lsp does not start either. Any ideas on how to get around this problem?
chetra-seng commentedon Dec 23, 2024
@manumoreno I found a fix here. Try it and let me know :)
#104 (comment)
s1n7ax commentedon Dec 24, 2024
You can now change the versions in the config itself.
https://github.com/nvim-java/nvim-java?tab=readme-ov-file#wrench-configuration
Note: the version combination looks broken right now for testing. I'm not sure which caused it. If you find version combination that works, let me know.