Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork77
Open
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)
v0.11.4
Operating system/version
MacOS 15.5
Describe the bug
Description:
I installed the plugin as recommended inlazy.lua. Mason installed all dependencies, and jdtls appears to start correctly.
However, when I open a Java project, Lombok support does not seem to be active. Running:LspInfo shows that jdtls starts with the following arguments:
{ "jdtls", "-configuration", "/Users/myuser/.cache/jdtls/config", "-data", "/Users/myuser/.cache/jdtls/workspace"}I have verified that Lombok is installed via Mason at:/Users/myuser/.local/share/nvim/mason/packages/lombok-nightly/lombok.jar
Possible cause
It seems likely that the --javaagent parameter for Lombok is missing when launching jdtls.
Steps To Reproduce
nvim-java.lua
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',{'JavaHello/spring-boot.nvim',commit = '218c0c26c14d99feca778e4d13f5ec3e8b1b60f0',},{'mason-org/mason.nvim',},},}lspconfig.lua (without extra stuff)
return {"neovim/nvim-lspconfig",event = { "BufReadPre", "BufNewFile" },dependencies = {"hrsh7th/cmp-nvim-lsp", "nvim-java/nvim-java", -- ensure java loads first{ "antosha417/nvim-lsp-file-operations", config = true },{ "folke/neodev.nvim", opts = {} },},config = function()-- import cmp-nvim-lsp pluginlocal cmp_nvim_lsp = require("cmp_nvim_lsp")local keymap = vim.keymap -- for conciseness-- used to enable autocompletion (assign to every lsp server config)local capabilities = cmp_nvim_lsp.default_capabilities()end,}Expected Behavior
Lombok annotations should be recognized, e.g., getters/setters should not trigger errors in the editor.