Replies: 4 comments 1 reply
-
After I did a bit of research it seems like it's taking 1.37 from one place and timestamp from another. The full version - https://download.eclipse.org/jdtls/milestones/1.37.0/jdt-language-server-1.37.0-202408011337.tar.gz doesn't exists. I proposed a PR - nvim-java/mason-registry#21 |
Beta Was this translation helpful? Give feedback.
-
@skryvets This happens due to incorrectly configured mason.nvim |
Beta Was this translation helpful? Give feedback.
-
@s1n7ax, thank you so much for looking at it! I applied (updated from the initial one I had) the following config (which uses opts instead of function), but still getting the same error: {
"nvim-java/nvim-java",
lazy = false,
dependencies = {
"nvim-java/lua-async-await",
"nvim-java/nvim-java-core",
"nvim-java/nvim-java-test",
"nvim-java/nvim-java-dap",
"nvim-java/nvim-java-refactor",
"MunifTanjim/nui.nvim",
"neovim/nvim-lspconfig",
"mfussenegger/nvim-dap",
{
"williamboman/mason.nvim",
opts = {
registries = {
"github:nvim-java/mason-registry",
"github:mason-org/mason-registry",
},
},
},
},
config = function()
require('java').setup({
root_markers = {
'settings.gradle',
'settings.gradle.kts',
'pom.xml',
'build.gradle',
'build.gradle.kts',
'mvnw',
'gradlew',
},
})
require("lspconfig").jdtls.setup {}
end,
} Any chance you can provide some tips? Again, thank you so much for looking at it. |
Beta Was this translation helpful? Give feedback.
-
Is your config in github? |
Beta Was this translation helpful? Give feedback.
-
I'm trying to set up nvim-java in LunarVim, but I've run into an issue:
Here's what I added to my ~/.config/lvim/config.lua:
JDTLS error disappears when I comment out the
require('java').setup(...)
portion, but then the plugin doesn't function as expected.I've tried looking for solutions in the following issues:
I also attempted modifying the
~/.local/share/nvim/mason/registries/github/mason-org/mason-registry/registry.json
file, but Mason seems to revert the changes with its configuration.I came across a suggestion that mentioned setting up a custom registry for the packages, but I don't fully understand how to implement this.
The biggest puzzle is that I tried this on AstroVim, and it works fine out of the box. I know LunarVim hasn't been updated lately, but I have quite a few configurations tied to it, and not in a position to switch to another distro (using this professionally). Could you please guide me in the right direction as to why Mason is trying to download a non-existent jdtls version? Also, LunarVim's default jdtls works fine out of the box, but it doesn't include all the goodies that the nvim-java plugin has.
I would really appreciate any guidance, especially if there's something I'm overlooking in my setup or if there's a better way to handle the jdtls integration in LunarVim.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions