Closed
Description
Describe the bug
NetBeans "default" integration fails to process Lombok annotations,
resulting in IDE errors in Lombok projects
To Reproduce
Load a Lombok project into NetBeans IDE and see that it has errors
Expected behavior
Project is error-free
Version info (please complete the following information):
Lombok 1.18.16 and 1.18.14
MacOS, Java 8 (latest)
NetBeans 12 with the latest updates
Additional context
Just upgraded to .16 from .12 and seeing this error
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
rspilker commentedon Oct 15, 2020
I understand you have errors in your code. But I'm not sure if you mean that Lombok silently didn't work, and therefore you have compiler errors since the getters were not generated, or if you suddenly get errors from Lombok code.
Do you have exceptions that occurred?
lprimak commentedon Oct 15, 2020
It looks like NetBeans either fails or not invoking Lombok starting in .14 version.
Because of that, the project is full of errors because none of the Lombok features are invoked anymore.
The code is error-free when compiled in Maven. The errors only show in NetBeans because
the new version of Lombok no longer works nicely with NetBeans 12 when upgrading to version .14
lprimak commentedon Oct 16, 2020
In the screenshot above, you can see the errors,
and NetBeans not finding a
@Builder
-generated code from Lombok,when everything worked correctly in the .12 version
lprimak commentedon Oct 16, 2020
Is the above clear? I feel like @rspilker you didn't understand the problem
thanks for checking!
lprimak commentedon Oct 16, 2020
Screenshot above is from the .12 version of Lombok with the same project and the same setup.
Once again, maven compiles the project just fine under both .12 and .14 versions barring changes related to #2610
asbachb commentedon Oct 16, 2020
I guess I'm running into a similar issue but with
@Setter
annotation. The internal NetBeans (12.1) compiler crashes with the new version:sephiroth-j commentedon Oct 18, 2020
same here with NetBeans 12.1 and Lombok 1.18.16 ... same project, simply getter/setter/data annotations, the only change was to update Lombok from 1.18.12 to 1.18.16.
[-][BUG] [Regression] NetBeans integration broken in 1.18.14[/-][+][BUG] [Regression] NetBeans integration broken in 1.18.16[/+]lprimak commentedon Oct 19, 2020
Confirmed. Same issue with 1.18.16
Rawi01 commentedon Oct 19, 2020
I just tried this using the latest netbeans and lombok version and a super simple example and it works as expected.

Can you share a broken code snippet/project?
asbachb commentedon Oct 19, 2020
@Rawi01 I guess you need to ensure that you installed and activated "The nb-javac java editing support library" and compile on save is enabled for your project.
Rawi01 commentedon Oct 19, 2020
@asbachb That was the information I was missing, thanks. It should be possible to debug it now.
lprimak commentedon Oct 19, 2020
Also, if you need a project, you can use this: https://github.com/flowlogix/flowlogix
and change lombok version in https://github.com/flowlogix/flowlogix/blob/master/flowlogix-bom/pom.xml
[projectlombok#2612] VarSymbol.adr is required for flow analysis in N…
50 remaining items