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.
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 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.
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.