1

I'm trying to debug java in emacs.I'm running the command M-x dap-java-debug in emacs and I'm getting below error.

emacs workspace/executeCommand with vscode.java.resolveMainClass failed. (error "The connected server(s) does not support method workspace/executeCommand.

To find out what capabilities support your server use M-x lsp-describe-session and expand the capabilities section")

Attached is the screenshot of the error.

My emacs configuration is here.

dap-debug-java-error

How can I fix this error?

4
  • The language server you're using doesn't support workspace/executeCommand Commented Jun 13, 2023 at 14:16
  • @nega lsp-java supports dap mode. Commented Jun 15, 2023 at 1:11
  • lsp-java isn't a language server. Commented Jun 15, 2023 at 1:53
  • Strip your config down to the bare minimum. Make sure your language server is installed correctly. Try again. Do what the error message suggests. Commented Jun 15, 2023 at 1:55

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.