-
Notifications
You must be signed in to change notification settings - Fork 425
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
Annotation processor fails on subcommands with mixins (4.0.0) #769
Comments
Thank you for the bug report! Investigating... |
I found the cause. Basically, mixins are discovered twice and stored in an internal datastructure twice. There is a de-duplication step missing which results in the mixins being added twice, giving the error you are seeing. I'll fix this as soon as possible. |
I pushed a fix for this issue to master. |
Verified. The processor now runs fine on this example as well as my real project. All I need now is for it to generate Java code and then I'm 100% happy :) |
Thanks for the verification! About code generation: I did some initial work on this, which is currently just used for testing (see the test I added in the commit to fix this bug). One of the goals is to be able to run without reflection (#539). That will take a while longer. :-) |
I released picocli 4.0.1 with the fix for this bug: https://github.com/remkop/picocli/releases/tag/v4.0.1 |
...and don’t be shy to star picocli on GitHub and tell your friends if you like the project! :-P |
The annotation processor fails with a duplicate option exception when a subcommand uses a mixin.
Minimal example:
Annotation processor output:
The text was updated successfully, but these errors were encountered: