This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Editor shows compile errors with lombok with Maven | ||
---|---|---|---|
Product: | java | Reporter: | benx |
Component: | Editor | Assignee: | Dusan Balek <dbalek> |
Status: | NEW --- | ||
Severity: | normal | CC: | athompson, lsoares, villentretenmerth, zolta |
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows 10 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
IDE log
Screenshot for lomlok error |
Description
benx
2016-01-21 04:25:12 UTC
Created attachment 158201 [details]
IDE log
Created attachment 158202 [details]
Screenshot for lomlok error
I have the similar issue: NetBeans IDE 8.1 (Build 201510222201) Java: 1.8.0_65; Java HotSpot(TM) 64-Bit Server VM 25.65-b01 maven project lombok version 1.16.8 Simple example with several fields and @Data Annotation. ``` @Data class HelloWorld { private String hello = "Hello"; private String world = "World"; } HelloWorld hw = new HelloWorld(); System.out.println(hw); ``` Building and running example returns `local.HelloWorld@2a139a55` setting lombok version to 1.14.4, clean and build/run - returns `HelloWorld(hello=Hello, world=World)` setting lombok version back to 1.16.8, clean and build/run - returns `local.HelloWorld@2a139a55` Running the same project (with lombok 1.16.8) directly with maven exec:exec plugin returns good results. It seems something is cached. Integrated into 'main-silver', will be available in build *201605260002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/3e13526b1066 User: Svata Dedic <sdedic@netbeans.org> Log: #257656: accept also subtypes This issue is yet to be fixed. I am using netbeans nightly build of 17th june 2016 and the lombok is not working in ide. It's such an annoying issue, for now I am switching to idea community edition but hope this will be fixed in netbeans. Same issue occurs in NetBeans 8.2. See https://github.com/rzwitserloot/lombok/issues/1194 As noted in https://github.com/rzwitserloot/lombok/issues/1194 upgrading to Lombok 1.16.10 seems to fix the problem (this worked for me). As found by another user on https://github.com/rzwitserloot/lombok/issues/1194 only versions 1.16.10 and 1.16.12 work. Previous 1.14.x and the latest 1.16.14 DO NOT work. (In reply to AlexFalappa from comment #8) > As found by another user on > https://github.com/rzwitserloot/lombok/issues/1194 only versions 1.16.10 and > 1.16.12 work. > > Previous 1.14.x and the latest 1.16.14 DO NOT work. I confirm: using 1.16.12 works, 1.16.14 DOES NOT happening also to me. NetBeans 8.2 Lombok 1.16.14 Spring Boot 1.5.2 any news? Its lombok issue No problem with lombok 1.16.16 (released 2 days ago) : https://github.com/rzwitserloot/lombok/releases/tag/v1.16.16 |