Skip to content

bug: Missing capabilities on jdtls-1.33.0 #145

Closed

Description

@Zeioth

Did you check docs and existing issues?

  • I have read all the plugin docs
  • I have searched the existing issues
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

v0.9.5

Operating system/version

arch

Describe the bug

jdtls-1.33.0 is missing several capabilities
screenshot_2024-03-21_16-54-32_142771729

jdtls have them
screenshot_2024-03-21_16-54-02_471118991

The missing LSP capabilities are:

"textDocument/codeAction"
"textDocument/codeLens"
"textDocument/hover"
"textDocument/signatureHelp"
"textDocument/references"
"textDocument/rename"

A workaround for this issue is to have both jdtls and jdtls-1.33.0 installed, but then you get the nasty notification
screenshot_2024-03-21_17-03-44_328542822

But it would be ideal to add the missing capabilities to the jdtls-1.33.0 we are currently shipping.

Steps To Reproduce

  1. Install nvim-java as specified in the readme.
  2. Open a example project.

You won't be able to see references, code lens, or the rest of missing capabilities.

Expected Behavior

The jdtls-1.33 we ship from our registers should have the same level of capabilities the jdtls shipped by mason has.

Activity

  1. linked a pull request that will close this issuefix: jdtls won't start #147on Mar 23, 2024
  2. s1n7ax commented on Mar 23, 2024

    @s1n7ax
    Member

    @Zeioth Thanks for the issue. Turned out when I'm testing I had the jdtls package installed. Reverting the change. Please try now. Make sure to remove the any existing jdtls packages in mason and let it re-install

  3. Zeioth commented on Mar 23, 2024

    @Zeioth
    ContributorAuthor

    @s1n7ax That fixed the issue indeed thank you. I've tested:

    Debugger - OK
    screenshot_2024-03-23_21-57-54_738451337

    Capabilities - OK
    screenshot_2024-03-23_21-58-20_428783417

    Installed jdtls version - v1.31.0
    screenshot_2024-03-23_22-03-41_058305920

  4. Zeioth commented on Mar 23, 2024

    @Zeioth
    ContributorAuthor

    The nasty warning often show when opening a java project for some reason, but it is not super bad:
    screenshot_2024-03-23_22-12-15_907822561

  5. s1n7ax commented on Mar 24, 2024

    @s1n7ax
    Member

    @Zeioth Can you send the full log when it's failed? It's in ~/.local/state/nvim/lsp.log

  6. Zeioth commented on Mar 24, 2024

    @Zeioth
    ContributorAuthor

    @s1n7ax yes here I have a clean one: https://pastebin.com/raw/piKVUthZ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions