Open Bokoblin opened 1 year ago
This issue is an upstream lombok issue. @Bokoblin You may want to take a look at
Hi @snjeza
Seems like the workaround works, thanks.\ Hopefully, https://github.com/projectlombok/lombok/pull/3347 will be merged soon for a potential 1.18.28 release
Hi,
We have a professional maven Spring Boot project with Lombok annotations that we are usually developing on IntelliJ IDEA Ultimate, and for which we have no issues. Some of our new team members would preferably use VSCode to work on this project. For this purpose, I have tried playing with VSCode the past week.
I downloaded all mandatory extension and went for cloning the repository directly with VSCode so that there would be no potential clashes with my folder with intelliJ configuration. At the end of the importing, I'm stuck with VSCode IntelliCode detecting 3K+ problems due to Lombok annotations not recognized, while "mvn compile" work fine. I have spent the few last days trying different solutions looking at official documents, GitHub ticket and stackoverflow similar issues, from verifying that mandatory extensions were installed, resetting project after extension install, trying alternative extensions, explicitly mentioning lombok version instead of inheriting... to no avail.
A few minutes ago, though I tried downgrading "Language Support for Java(TM) by Red Hat" to 1.8.0 and something changed: I noticed this new bubble notification:
Once I clicked on it and reloaded the project, the errors start disappearing for the current file, and other files when clicking on errors individually. Once noticing that, I went back to 1.15.0 and the errors re-appeared.
Then, I went back one version each time to identify the first version with the problem:
Thus, I strongly think there was a regression in 1.12.0 making that lombok cease working for a setup similar to mine or for the other extensions, on a given version, I have
Environment
Operating System: MacOS 13.2.1
JDK version: 17
Visual Studio Code version: Version: 1.75.1 (Universal) Commit: 441438abd1ac652551dbe4d408dfcec8a499b8bf Date: 2023-02-08T21:34:59.000Z Electron: 19.1.9 Chromium: 102.0.5005.194 Node.js: 16.14.2 V8: 10.2.154.23-electron.0 OS: Darwin x64 22.3.0 Sandboxed: No
Java extension version: 1.15.0
All extensions:
Steps To Reproduce
Current Result
lombok annotations and related code not recognised, thus also failing compilation
Expected Result
No IntelliCode problem detected
Additional Informations
Maven:
Lombok.config
settings.json
Note:
{}
tool bar. Alternating them does not do anythingtarget/generated-sources/annotations
is empty