lishunli / projectlombok

Automatically exported from code.google.com/p/projectlombok
0 stars 0 forks source link

Eclipse can't see generated code in Scala classes #578

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
 I have a mixed Scala/Java project build with maven inside Eclipse. The parent pom build tag is defined as here [0].

 When in a Scala class I use lombok generated getters from a Java class the  IDE's editor is unable to see those getters (classic curly red line below the 'getField' methods, unable to complete).
 If in the Java class I remove @Getter annotation and explicitly declare them Eclipse is fine.

 The project explorer view instead doesn't show errors.

 The project compile fine with maven from command line, on several workstation and on CI servers too.

 I tried with both Eclipse Juno and Kepler and with both lombok 0.11.8 and 0.12.0

[0] http://nopaste.info/6234c92419.html

Original issue reported on code.google.com by tolo...@celi.it on 19 Sep 2013 at 7:56

GoogleCodeExporter commented 9 years ago
Scala probably does its own internal parsing of your source files. Nothing we 
can do. _Maybe_ if you add lombok.jar as an annotation processor, scala's 
internal java compiler picks it up? No idea, unfortunately this kind of 
integration is low on our priority list.

Original comment by reini...@gmail.com on 10 Oct 2013 at 9:05