weilbith / nvim-code-action-menu

Pop-up menu for code actions to show meta-information and diff preview
MIT License
577 stars 19 forks source link

Error using jdtls #65

Open tukaloff opened 1 year ago

tukaloff commented 1 year ago

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 commented 1 year ago

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