Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bug: Lombok support not working #430

Open
Labels
bugSomething isn't working
@gogbog

Description

@gogbog

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp