Skip to content

bug: jdtls installing from invalid source #362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
BenjyRead opened this issue Mar 13, 2025 · 7 comments
Open
3 tasks done

bug: jdtls installing from invalid source #362

BenjyRead opened this issue Mar 13, 2025 · 7 comments
Labels
bug Something isn't working

Comments

@BenjyRead
Copy link

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

@BenjyRead BenjyRead added the bug Something isn't working label Mar 13, 2025
@s1n7ax
Copy link
Member

s1n7ax commented Mar 13, 2025

Check the latest version

@BenjyRead
Copy link
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

@s1n7ax
Copy link
Member

s1n7ax commented Mar 14, 2025

nvim config is in github?

@BenjyRead
Copy link
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

@BenjyRead BenjyRead changed the title bug: bug: jdtls installing from invalid source Mar 14, 2025
@BenjyRead
Copy link
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.

@BenjyRead
Copy link
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

@BenjyRead BenjyRead reopened this Apr 29, 2025
@BenjyRead
Copy link
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants