Lombok: Does not work with Netbeans 8.2 RC

Created on 21 Sep 2016  Â·  24Comments  Â·  Source: projectlombok/lombok

Netbeans 8.2 RC was released today. Sadly Netbeans is not detecting any Lombok generated code as getters or log.

Netbeans 8.2 brings first parts of Java 9 support, so I think internally it has to use some kind of Java 9 compatible code parser. Is Lombok not yet fully supported by Java 9?

Most helpful comment

Can confirm 1.16.10 seems fine with 8.2, but annoyingly the 1.16 series doesn't work on 8.1 :(

All 24 comments

I ran into this issue. However, according to the changelog, initial JDK9 support was added back in March. Make sure your project uses the latest version of Lombok and your life will be better!

I'm already using 1.16.10, so this initial JDK9 support seems to be missing something.

I have the same problem with NetBeans 8.2 Final

Same here, but I'm still using 1.16.6 with NetBeans 8.2 Final, although i don't think that should matter.

using NB 8.2 and gradle and gradle 4 NB 1.3.9 (if that maters) -- I was on lombok 1.16.2 and was seeing this issue -- NB showing error that were not real issues because lombok. Swapped in 1.16.10 and the issue went away after a clean build and reopen of project(s).

wonder what happened? And if there is some switch in NB 8.2 that toggles to the older 8.1 behavior -- I was running 8.1 with same JDK8 version and same old 1.16.2 lombok about 2 days ago and this combination was just fine.

Can confirm 1.16.10 seems fine with 8.2, but annoyingly the 1.16 series doesn't work on 8.1 :(

I can confirm that NetBeans 8.2 doesn't work also with Lombok 1.12.6. However it works for NetBeans 8.1.

1.16.10 doesn't work to me on NetBeans 8.2, maybe because did I import 8.1 prefs?

EDIT: After some time I opened my NB 8.2 again, and lombok is working now... :|, not sure the real cause of problem, but appears that if you close and open IDE, projects, clean all, reinstall OS, clone git, compile linux Kernel, etc, lombok works again.

EDIT 2: Some projects only start to work after delete NetBeans cache folder (index)

I'm having this problem with 1.16.x and NB 8.2 too, tried both 1.16.6 and 1.16.10, clean build + close/reopen project. NB doesn't recognize the log var injected via @Log4j2. Doesn't seem to have any issue with getters/setters though scratch that, even getters don't work.

I confirm the problem with lombok .1.14.8 (java 6) : worked in netbeans 8.1 and doesn't work anymore on 8.2

Just got hit by this issue. Clean install of Netbeans 8.2 on Win 10 with JDK 1.8.0_122 64bit. With latest lombok 1.16.12 Netbeans doest not "see" generated code. Autocomplete does not list generated members (getters, builders, etc.) and error hints are displayed in editor. Compiling sources works, seems to be only editor related issue.
With lombok 1.16.10 everything works ok.

I have same problem with NB 8.2, lombok 1.14.8 and 1.12.2. Lombok is heavily used in company where I work and it makes NB almost unusable.

Looks like 1.16.12 works fine on both 8.1 and 8.2

I tried with 1.16.12 then 1.6.14, and it was not ok.
Then, I removed netbeans cache (rm -rf ~/.cache/netbeans/8.2), fully cleaned the sourcre tree (mvn clean) and it started to work in netbeans 8.2.

1.16.14: same issue, compiles OK but no autocomplete and error hints.
1.16.12 and 1.16.10 "work" fine.

Netbeans 8.2 final on Mac OS Sierra.

Clearing cache ~/Library/Caches/NetBeans/${netbeans_version}/ makes no difference.

I have the same issue with @andy-barlow when i upgrade my spring-boot project to 1.5.2.RELEASE : it compiles OK but no autocomplete and error hints and @Data not creating getters, setters, etc. #1322, .
Previously 1.16.12 and 1.16.10 "work" fine.

Netbeans 8.2 final on Windows 10.

Clearing cache ~/Library/Caches/NetBeans/${netbeans_version}/ makes no difference.
Edit : when i downgrade lombok to 1.16.12 all works fine !

I confirm what @mtbadi39 and @andy-barlow found: only 1.16.10 and 1.16.12 work flawlessly.

I am on NetBeans 8.2 on JDK 8 on Linux

For the record there is also an issue open on NetBeans Bugzilla

I'm using NetBeans 8.2 (Windows 10) and lombok in a maven project. With versions 1.16.12 and 1.16.14, auto-generated getter methods are not recognised inside NetBeans (marked as red errors). However, the maven build completed without errors.
Version 1.16.10 is fine.

same here with 1.16.14 on NetBeans 8.2
lots of IDE errors 🤕

1.16.16 works on NetBeans 8.2 after cleaning ~/.cache/netbeans/8.2

In fact, 1.16.16 works for me without cleaning the cache. 1.16.14 still doesn't work, so perhaps something has changed in 1.16.16 to address the issue?

1.16.16 works for me as well (no cache clean needed)

1.16.16 works for me too (Netbeans 8.2 final, Java 7, spring-boot 1.5.2.RELEASE, Windows 10)

I suspect NetBeans has been using a jdk9 compiler under the hood. 1.16.16
is jdk9 compatible.

On Mar 24, 2017 18:06, "mtbadi39" notifications@github.com wrote:

1.16.16 works for me too (Netbeans 8.2 final, Java 7, spring-boot
1.5.2.RELEASE, Windows 10)

—

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/rzwitserloot/lombok/issues/1194#issuecomment-289082795,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALnRNjW-4r7jIrYQuyvZRrUKM99wiYwnks5ro_fdgaJpZM4KChFp
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gudenau picture gudenau  Â·  47Comments

xiaolongzuo picture xiaolongzuo  Â·  32Comments

lombokissues picture lombokissues  Â·  46Comments

rspilker picture rspilker  Â·  98Comments

lex-em picture lex-em  Â·  61Comments