Skip to content

bug: jdtls installing from invalid source #362

Closed as duplicate
Closed as duplicate

Description

@BenjyRead

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.10.3

Operating system/version

OS: Debian GNU/Linux 12 (bookworm) x86_64

Describe the bug

nvim-java is trying to download a jdtls from nvim-java/release-jdtls (which is pretty normal), however it has got old release tags, so old that they do not exist anymore:

Image

This is using mason.nvim

here is my nvim-java settings (using lazy.nvim):

        {
            "nvim-java/nvim-java",
            tag = "v2.0.2",
            config = function()
                require("java").setup()
            end,
        },

the issue occurs with and without tagging

Might be an issue to do with something else in my config, although this has only been a recent issue:
-> current config

Steps To Reproduce

  1. use my nvim config
  2. load nvim
  3. should raise the same issue I got
    Sorry I can't be more descriptive

Expected Behavior

Should install jdtls properly

Activity

  1. s1n7ax commented on Mar 13, 2025

    @s1n7ax
    Member

    Check the latest version

  2. BenjyRead commented on Mar 13, 2025

    @BenjyRead
    Author

    Check the latest version

    the issue occurs with and without tagging

    in both versions it pulls from the same non existent link https://github.com/nvim-java/release-jdtls/releases/download/1.37.0/jdtls.tar.gz

  3. s1n7ax commented on Mar 14, 2025

    @s1n7ax
    Member

    nvim config is in github?

  4. BenjyRead commented on Mar 14, 2025

    @BenjyRead
    Author

    nvim config is in github?

    Might be an issue to do with something else in my config, although this has only been a recent issue:
    -> current config

    the link is pinned to the commit im currently on

  5. changed the title [-]bug:[/-] [+]bug: jdtls installing from invalid source[/+] on Mar 14, 2025
  6. BenjyRead commented on Mar 14, 2025

    @BenjyRead
    Author

    Alright I still don't know what the issue was, but uninstalling jdtls from mason, deleting the jdtls cache directory (~/.cache/jdtls) and reloading neovim seemed to do the trick. Just deleting the cache didn't work which is why I couldn't fix it initally, you have to uninstall then delete.

  7. BenjyRead commented on Apr 29, 2025

    @BenjyRead
    Author

    UPDATE: a cleaner fix

                    require("java").setup({
                        jdtls = {
                            version = "1.44.0"
                        }
                    })
    

    for posterity: replace 1.44.0 with whatever version is actually available at https://github.com/nvim-java/release-jdtls/releases

  8. BenjyRead commented on Apr 29, 2025

    @BenjyRead
    Author

    Reopening this issue since I've had it continuously for like last month, and I've changed a lot of things in that time so I can't imagine its just me having this issue.

  9. s1n7ax commented on May 17, 2025

    @s1n7ax
    Member

    @BenjyRead What mason version are you using?

  10. BenjyRead commented on May 18, 2025

    @BenjyRead
    Author

    @BenjyRead What mason version are you using?

    I've always been testing with the newest, I regularly run lazy.nvim updates

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions