-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IntelliJ IDEA fails to compile project w/ annotation processor #773
Comments
Thanks for the report. I’ll take a look ASAP. |
What’s your Intelli/J version? |
I was unable to reproduce the issue with my version of IntelliJ (2019.1.1). I will try to upgrade next. Meanwhile, the
This successfully generates the project, and I can see the annotation processor generating files during compilation in IntelliJ. Can you try the above steps and let me know if you can reproduce the issue that way? |
Interesting. I wasn't able to reproduce using that approach. Can you check out my project? To get the compiler error, you shouldn't need to do anything else but |
(I should also note that I am seeing this issue ever since I upgraded to IntelliJ 2019.2. I was not seeing it on your 2019.1.) |
I am now trying to compile the robozonky project in IntelliJ 2019.1.1, but I am having trouble with the Java version. What is the required Java version for the project? |
It requires Java 11 or later. |
Thanks, made some progress but now bumped into a different error: I will check again later. |
Yeah, that's a problem I have not yet resolved. :-( Sorry for that. If you |
Cool, let me try that. |
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.... |
…ructor to fix build error in IntelliJ IDEA 2019.2
I added a public no-arg constructor to I tested by running |
I added constructors to all annotation processors: the I released picocli 4.0.2 with these changes. Can you verify with this version? If the problem still exists there may be an issue in Intelli/J IDEA, or perhaps there’s another issue in picocli than the error message indicates. Either way we may need help from JetBrains. |
Upgraded to 4.0.2, didn't help. :-( |
It seems fixed in IntelliJ 2019.2.4. |
That's great. They did not give much feedback on that ticket, but glad it's fixed! |
I get a similar error in IntelliJ 2022.3.3:
What should I do to fix it? |
Hi @LeviPesin, the previous time this happened it turned out to be a problem in Intelli/J. I believe the best course of action is to file a ticket with JetBrains. |
The IDE's compiler says:
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.The text was updated successfully, but these errors were encountered: