picocli: IntelliJ IDEA fails to compile project w/ annotation processor
The IDE’s compiler says:
Error:java: Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: picocli.codegen.aot.graalvm.processor.NativeImageConfigGeneratorProcessor Unable to get public no-arg constructor
This can be worked around by disabling annotation processing in the IDE, but that setting then switches itself back on when the project’s pom.xml is updated.
To reproduce, create a Maven project with maven-compiler-plugin configured with the Picocli annotation processor.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19 (18 by maintainers)
Commits related to this issue
- [#773] Bugfix: Add public `NativeImageConfigGeneratorProcessor` constructor to fix build error in IntelliJ IDEA 2019.2 — committed to remkop/picocli by remkop 5 years ago
- [#773] Add public constructor to AbstractCommandSpecProcessor and AbstractCompositeGeneratorProcessor — committed to remkop/picocli by remkop 5 years ago
- [#773] Make AbstractCommandSpecProcessor and AbstractCompositeGeneratorProcessor constructors protected — committed to remkop/picocli by remkop 5 years ago
Upgraded to 4.0.2, didn’t help. 😦 Filed a bug with Jetbrains: https://youtrack.jetbrains.net/issue/IDEA-220545
I was able to successfully build the project in IntelliJ IDEA 2019.1.1. The problem does not manifest with that version.
After upgrading to IntelliJ IDEA 2019.2, I also see the error:
Investigating…