-
-
Notifications
You must be signed in to change notification settings - Fork 83
Description
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)
NVIM v0.11.0 Build type: RelWithDebInfo LuaJIT 2.1.1741730670 Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/build/neovim/src=/usr/src/debug/neovim -flto=auto -O2 -g -flto=auto -fno-fat-lto-objects -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wvla -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -fsigned-char -fstack-protector-strong -Wno-conversion -fno-common -Wno-unused-result -Wimplicit-fallthrough -fdiagnostics-color=always -DUNIT_TESTING -D_GNU_SOURCE -DINCLUDE_GENERATED_DECLARATIONS -DUTF8PROC_STATIC -I/usr/include/luajit-2.1 -I/usr/include -I/build/neovim/src/neovim/build/src/nvim/auto -I/build/neovim/src/neovim/build/include -I/build/neovim/src/neovim/build/cmake.config -I/build/neovim/src/neovim/src system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/share/nvim" Run :checkhealth for more info
Operating system/version
Arch linux
Describe the bug
...y/nvim-java-core/lua/java-core/ls/servers/jdtls/init.lua:73: attempt to call method 'get_install_path' (a nil value)
stacktrace:
- ~/projects/GODVIM/lua/godvim/plugins/lang/lspconfig.lua:48 in config
Press ENTER or type command to continue
Steps To Reproduce
-
install nvim
-
install nvim-java
-
this is the config: return {
{ "williamboman/mason-lspconfig"
},
{
"williamboman/mason.nvim",
opts = {
registries = {
'github:nvim-java/mason-registry@2024-12-24-graceful-raft',
'github:mason-org/mason-registry@2025-05-10-new-sprout',
},
},
},
{
"nvim-java/nvim-java",
ft = "java",
},
{
"neovim/nvim-lspconfig",
event = "BufReadPre",
-- event = "User FilePost",
dependencies = {
"zeioth/garbage-day.nvim",},
config = function()
local mason = require("mason")
local lspconfig = require("lspconfig")mason.setup()
local servers = {
"lua_ls",
"ruff",
"jsonls",
"jdtls",
"yamlls",
"pyright",
"marksman",
"jdtls",
}require("mason-lspconfig").setup({
ensure_installed = servers,
})require("java").setup({
jdk = {
auto_install = false,
},
})require("lspconfig").jdtls.setup({
handlers = {
-- By assigning an empty function, you can remove the notifications
-- printed to the cmd
["$/progress"] = function(_, result, ctx) end,
},
})-- lspconfig.jdtls.setup({})
lspconfig.lua_ls.setup({})
lspconfig.jsonls.setup({})
lspconfig.ruff.setup({})
lspconfig.yamlls.setup({})
lspconfig.pyright.setup({})
lspconfig.marksman.setup({})
end,
}
}
Expected Behavior
it should have outputed no error.