This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
2 Replies Last post: Apr 8, 2013 8:33 PM by Fabio Bonfante  
Florian Hehlen Novice 296 posts since
Aug 21, 2002
Currently Being Moderated

Jan 30, 2013 2:13 PM

eclipse compiler and lombok not working

I am getting compilation errors when trying to use the new eclipse compiler and the lombok library that does compile time code generation. I have no problems with the standard compiler. Has anyone experienced this? Is there a something I need to configure or a work-around?

 

cheers,

Florian

Eugene Zhuravlev JetBrains 3,973 posts since
Oct 12, 2001
Currently Being Moderated
Jan 30, 2013 3:57 PM in response to: Florian Hehlen
Re: eclipse compiler and lombok not working

Hi Florian,

The description is too general. Compiling errors migt be caused either by processor configuration, dependency configuration between modules of your project or by compiler/annotation processor internal bugs.

If processors are discovered and run, then the problem is most likely in combination of compiler/annotation processor. Please note the annotation processor is essentially a compiler extension and is a "black box" for IDEA.

 

Regards,

  Eugene.

Fabio Bonfante Newbie 1 posts since
Apr 8, 2013
Currently Being Moderated
Apr 8, 2013 8:33 PM in response to: Eugene Zhuravlev
Re: eclipse compiler and lombok not working

I've the same problem, specifically the lombok annotations aren't

processed, resulting in missing getter/setter all around the code.

 

In the lombok docs is explained how to use it with ecj

 

java -javaagent:lombok.jar=ECJ -Xbootclasspath/p:lombok.jar -jar ecj.jar -cp lombok.jar (rest of arguments)

 

Given that it would be very useful if a user could set these advanced options for launch the ecj (but could be the same for other compiler).

More Like This

  • Retrieving data ...