Eclipse Compiler including annotation processing
Answered
Hey,
I'm using IntelliJ 2021.2.3 CE. I want to use eclipse compiler on my multiproject build. In addition I'm using annotation processing to generate java code e.g. with the google-auto-value library.
But the compiler process fails with
Warning:java: Could not write generated class XYZ: javax.annotation.processing.FilerException: Source file already exists : XYZ
the java code isn't generated when this message appears.
I added comments already to
https://youtrack.jetbrains.com/issue/IDEA-211545
https://bugs.eclipse.org/bugs/show_bug.cgi?id=547010
without getting an answer.
There is also a project you can checkout to verify the issue in intellij
https://github.com/mbauhardt/ecj-filer-exception
My question here is, has someone of you experience with annotation processing in combination with the eclipse compiler?
thx
marko
Please sign in to leave a comment.
I cannot reproduce it with 2021.3.2 version:
Please try using latest version.
hi Andrey Dernov
thanks for looking into it. did you changed the the class coffee after the first compiling? e.g. adding a line or change the signature of one of the methods? and trigger a recompiling then?
this is the actual issue....
hi Andrey Dernov,
i just upgraded my system and got intellij 2021.3.2. The recompilation is working now. Thanks for looking into.
thx jetbrains for fixing.
marko