Skip to content
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 Processing: options were not recognized by any processor #1472

Closed
lorenzleutgeb opened this issue Nov 19, 2021 · 4 comments
Closed
Labels
theme: annotation-proc An issue or change related to the annotation processor type: bug 🐛
Milestone

Comments

@lorenzleutgeb
Copy link

With -Averbose=true I get

warning: The following options were not recognized by any processor: '[verbose]'

I suspect that this is because the option is not listed at

@SupportedOptions({NativeImageConfigGeneratorProcessor.OPTION_PROJECT,
OPTION_BUNDLES,
OPTION_RESOURCE_REGEX,
OPTION_INTERFACE_CLASSES,
ReflectConfigGen.OPTION_DISABLE,
ResourceConfigGen.OPTION_DISABLE,
ProxyConfigGen.OPTION_DISABLE,
})

Could you please verify that, and consider adding the constant

Thanks.

@remkop
Copy link
Owner

remkop commented Nov 19, 2021

HI @lorenzleutgeb thank you for raising this!
Will you be able to provide a pull request for this?

@lorenzleutgeb
Copy link
Author

You probably know much more about annotation processors (and how their arguments are discovered by the compiler). If you think that my analysis is plausible, then I'd have a go, yes.

@remkop remkop added theme: annotation-proc An issue or change related to the annotation processor type: bug 🐛 labels Nov 19, 2021
@remkop remkop added this to the 4.6.3 milestone Nov 19, 2021
@remkop
Copy link
Owner

remkop commented Nov 19, 2021

I think your analysis is correct. It would be great if you could provide a PR, ideally with a test, similarly to the testOption ones here: picocli-annotation-processing-tests/src/test/java/picocli/codegen/aot/graalvm/processor/NativeImageConfigGeneratorProcessorTest.java
:-)

@remkop remkop closed this as completed in 432b21d Jan 18, 2022
remkop added a commit that referenced this issue Jan 18, 2022
@remkop
Copy link
Owner

remkop commented Jan 18, 2022

Thank you again for raising this.
I pushed a fix to the master branch.

Interestingly/unfortunately, I was unable to reproduce the issue in the unit test.
Can you verify that the problem goes away when you build picocli from master?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: annotation-proc An issue or change related to the annotation processor type: bug 🐛
Projects
None yet
Development

No branches or pull requests

2 participants