Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Error using jdtls #65

Open
tukaloff opened this issue Jul 23, 2023 · 1 comment
Open

Error using jdtls #65

tukaloff opened this issue Jul 23, 2023 · 1 comment

Comments

@tukaloff
Copy link

Same error

jdtls: -32601: No delegateCommandHandler for java.action.generateConstructorsPrompt

I checked this with just code_action and it works well

I tried to find reason but for now I have this example:

{
  arguments = { {
      context = {
        diagnostics = {}
      },
      range = {
        ["end"] = {
          character = 0,
          line = 27
        },
        start = {
          character = 0,
          line = 27
        }
      },
      textDocument = {
        uri = "file:///Users/tukaloff/git/media-fs-transfer-tool/src/main/java/com/tukaloff/mediafstransfertool/FileService.java"
      }
    } },
  command = "java.action.generateConstructorsPrompt",
  title = "Generate Constructors..."
}

this is inspected value of command I receive in parse_object_as_action

Some objects are just null
Some can run such as generate getter

Maybe this information will be helpful

@tukaloff
Copy link
Author

I continued with searching and it's look like in jdtls no implementation of workspace/executeCommand for some delegates

Generation of constructors prompt works well when execute vim.lsp.buf.code_action and select action
But won't work when vim.lsp.buf.execute_command

I opened issue so I hope it will be helpful

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant