Cursor no longer recognizes code generated by Lombok

Recently, Cursor has stopped recognizing code automatically generated by Lombok, such as @Data and @Slf4j.
I remember it used to work before, but somehow it’s not being recognized anymore.




Version: 0.49.4
VSCode Version: 1.96.2
Commit: ec408037b24566b11e6132c58bbe6ad27046eb90
Date: 2025-04-22T00:13:20.211Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Darwin arm64 23.5.0

1 Like

Has anyone else experienced this issue or knows how to fix it?

This appears to be an issue specific to the 0.49 version, as the 0.48.8 release operates without anomalies.

2 Likes

Facing same issue after upgrading to 0.49. Tried refreshing annotation processor, adding the jar manually but nothing seems to work

I even tried downgrading the version, but it didn’t help. I also tested the same setup in VSCode with identical settings, and it works there—so I’m not sure why it’s failing in Cursor. It’s causing unnecessary linter errors in the IDE while the AI is responding, which is really frustrating.

I have the same issue

I was able to fix this issue by clearing the .vscode & .cursor folders in home directory. I had to reinstall the extensions

1 Like

Thanks @tarun111
I just reinstalled all the java extensions and it solved the issue

1 Like

mee too, thanks @tarun111

Did you mean Extension Pack for Java extension?
I reinstalled it, but nothing seems to work. :frowning:

I just searched for ‘Java’ in extensions and reinstalled every java extension that I had installed

I uninstalled the extension, and the problem seems to be gone.

1 Like

I use the Redhat Java pack (not the new oracle extension) and for no apparent reason the wither methods from Lombok started showing up as error in Cursor a couple of days ago (the @With annotation).

I tried uninstalling and reinstalling everything and it doesn’t help

I was able to get it back working by installing a specific version for redhat’s plugin 1.41.1.
currently it’s one version back. 1.42.0 was released a few days ago which is consistent with when I started noticing it.

1 Like

did this and worked.

there’s an open issue regarding this 1.42.0 with Lombok @Builder does not work with records · Issue #4050 · redhat-developer/vscode-java · GitHub

tho I’m not sure whether is it cursor or redhat’s plugin the main issue

1 Like

Disabling Java Platform Extension for Visual Studio Code by Oracle solved the problem. I installed the redhat Language Support for Java and it works fine. I don’t build the project but the red markings of failed injections too much distracting for development.