nvim-code-action-menu icon indicating copy to clipboard operation
nvim-code-action-menu copied to clipboard

Error using jdtls

Open tukaloff opened this issue 2 years ago • 1 comments

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 avatar Jul 23 '23 20:07 tukaloff

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

tukaloff avatar Jul 23 '23 23:07 tukaloff