Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings
nvim-java

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Uncommon error when JDTLS attaches to buffer#420

Answeredbygoldeneas
goldeneas asked this question inQ&A
Discussion options

Hello.
I have just installed nvim-java. This is my current configuration:

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 failedRPC[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.
Tell me if some more info is needed. I am running Ubuntu 24.04 LTS with nvim v0.11.3.

You must be logged in to vote

Indeed that seems to have solved this too.
For anyone wondering, take a look at#421
Thank you.

Replies: 2 comments 1 reply

Comment options

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>  }}
You must be logged in to vote
0 replies
Comment options

I think it's the same problem as your other question.

You must be logged in to vote
1 reply
@goldeneas
Comment options

Indeed that seems to have solved this too.
For anyone wondering, take a look at#421
Thank you.

Answer selected bygoldeneas
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@goldeneas@logrusx

[8]ページ先頭

©2009-2025 Movatter.jp