IntelliJ external build (SBT) not liking Lombok

227 views
Skip to first unread message

Sam Halliday

unread,
Jul 4, 2013, 4:46:35 PM7/4/13
to simple-b...@googlegroups.com
Hi all,

I'm working on a primarily Java application which uses Lombok for code generation.

Unfortunately, the Scala code cannot see the lombok-generated methods when compiled with IntelliJ's SBT compiler (we're actually using ant for company standards reasons to do the CI builds).

The kinds of errors I get are "getKey is not a member of my.package.MyClass".

Bizarrely, this works if I comment out the Scala code that accesses the generated code, recompile the project, and then uncomment the Scala code. Clearly the Lombok generation is kicking in too late in the SBT workflow for the Scala code to see the generated methods.

Is this a known problem? Will it be fixed anytime soon?

Regards,
Sam

OlegYch

unread,
Jul 5, 2013, 4:57:09 AM7/5/13
to simple-b...@googlegroups.com
Intellij uses SBT-based zinc, which is just a scala incremental compiler.
You need to figure out how to correctly invoke lombok generation before scala compiler in Intellij.

Aleh
Reply all
Reply to author
Forward
0 new messages