Eclipse + Lombok having issues with quick fix tips

1,157 views
Skip to first unread message

prashanth venugopal

unread,
Dec 15, 2019, 7:43:09 AM12/15/19
to Project Lombok
eclipse - 2019-09 R + maven + m2e-apt
lombok - 1.18.6

I installed lombok using maven, through eclipse and i after installing the m2e-apt, i can see the lombok jar file in the javac annotation processor list. I can also see that auto-complete and searching for references/declarations of the generated getter/setter methods seem to work.

I also installed (the maven resolved) lombok.jar into eclipse by executing the jar file.

However eclipse keeps showing a "quick fix" tool tip where ever the lombok generated methods are used.

Compilation/packaging using maven works fine.

Attaching snapshots.
issue-1 -: The location where the quick tips are shown (usage/reference of the getter/setter functions)
issue-2 -: Shows that the getters/setters are actually shown in the eclipse outline view




Lombok-eclipse-issue-1.jpg
lombok-eclipse-issue-2.jpg

Martin Grajcar

unread,
Dec 15, 2019, 6:38:26 PM12/15/19
to project...@googlegroups.com
I guess, you already tried this, but cleaning all projects and restarting Eclipse is often helpful.

Eclipse sometimes reports errors in the current file, while there are none in the "Problem" view and everything works fine.
Usually, all it needs is to close and reopen the file. I guess, it's a bug in Eclipse itself, luckily, the remedy is trivial.

--
You received this message because you are subscribed to the Google Groups "Project Lombok" group.
To unsubscribe from this group and stop receiving emails from it, send an email to project-lombo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/project-lombok/dd499862-1d85-4726-88bf-34c085505ab4%40googlegroups.com.

Moises Lejter

unread,
Dec 16, 2019, 1:35:12 AM12/16/19
to project...@googlegroups.com
IIRC, I ran into something similar, until I made sure to add lombok as a Maven dependency for my project.  Once I did that, those "extra" errors went away.

Moises
Reply all
Reply to author
Forward
0 new messages