Skip to content
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

bug: Wrong URL on new installation #14

Closed
3 tasks done
PiotrKuzdowicz opened this issue May 20, 2024 · 3 comments
Closed
3 tasks done

bug: Wrong URL on new installation #14

PiotrKuzdowicz opened this issue May 20, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@PiotrKuzdowicz
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)

0ac2e2f

Operating system/version

Ubuntu

Describe the bug

Mason generate wrong url to downoad jdt-language-server. This url doesn't Failed to download file "https://download.eclipse.org/jdtls/milestones/1.31.0/jdt-language-server-1.31.0-202404251256.tar.gz".

Steps To Reproduce

  1. New installation of neovim
  2. Using lazy.nvim

return {
'nvim-java/nvim-java',
dependencies = {
'nvim-java/lua-async-await',
'nvim-java/nvim-java-refactor',
'nvim-java/nvim-java-core',
'nvim-java/nvim-java-test',
'nvim-java/nvim-java-dap',
'MunifTanjim/nui.nvim',
'neovim/nvim-lspconfig',
'mfussenegger/nvim-dap',
{
'williamboman/mason.nvim',
opts = {
registries = {
'github:nvim-java/mason-registry',
'github:mason-org/mason-registry',
},
},
}
},
}

  1. Setup nvim-java before lspconfig

require('java').setup()
4. Restart nvim

Expected Behavior

Error when mason download jdtls

@PiotrKuzdowicz PiotrKuzdowicz added the bug Something isn't working label May 20, 2024
@PiotrKuzdowicz
Copy link
Author

ok, this is not a problem in nvim-java, I looked for the reason and it is a problem related to mason-registry
mason-org/mason-registry#5788

@s1n7ax
Copy link
Member

s1n7ax commented May 20, 2024

@PiotrKuzdowicz Those dependencies are coming from nvim-java mason registry.

@s1n7ax s1n7ax reopened this May 20, 2024
@s1n7ax s1n7ax transferred this issue from nvim-java/nvim-java May 20, 2024
@s1n7ax
Copy link
Member

s1n7ax commented May 20, 2024

@PiotrKuzdowicz Never mind. In nvim-java registry, we have the correct url. You probably have configured mason.nvim incorrectly. Check this out to correctly configure mason.nvim so nvim-java can add additional repositories.

https://github.com/nvim-java/nvim-java/wiki/Q-&-A#no_entry-cannot-find-package-xxxxx

@s1n7ax s1n7ax closed this as completed May 20, 2024
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