-
|
Hello. return {
"nvim-java/nvim-java",
dependencies = { "neovim/nvim-lspconfig" },
config = function()
local java = require("java")
local lspconfig = require("lspconfig")
java.setup()
lspconfig.jdtls.setup({})
end,
}
If I then open a java file and let the lsp attach, I sometimes get this error: 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:74: in function 'handler'
.../nvim/4196/usr/share/nvim/runtime/lua/vim/lsp/client.lua:682: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
I can press enter and everything keeps working like normal. |
Beta Was this translation helpful? Give feedback.
-
|
Update: This error also shows up some times. Error executeCommand: sts.java.addClasspathListener
{
code = -32601,
message = "No delegateCommandHandler for sts.java.addClasspathListener",
<metatable> = {
__tostring = <function 1>
}
}
|
Beta Was this translation helpful? Give feedback.
-
|
I think it's the same problem as your other question. |
Beta Was this translation helpful? Give feedback.
Indeed that seems to have solved this too.
For anyone wondering, take a look at #421
Thank you.