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

ManPageGenerator fails with Quarkus #2145

Open
svartkanin opened this issue Nov 1, 2023 · 1 comment
Open

ManPageGenerator fails with Quarkus #2145

svartkanin opened this issue Nov 1, 2023 · 1 comment

Comments

@svartkanin
Copy link

svartkanin commented Nov 1, 2023

I'm using picocli successfully with Quarkus but now wanted to use the ManPageGenerator command as well.

@Command(
    name = "documentation",
    description = ["Command to generate CLI documentation"],
    subcommands = [ ManPageGenerator::class]
)
class Documentation

However, running building the executable and running it leads to the error

 ERROR [io.qua.run.Application] (main) Failed to start application (with profile [prod]): picocli.CommandLine$InitializationException: Could not access or modify mixin member picocli.codegen.docgen.manpage.ManPageGenerator$Config picocli.codegen.docgen.manpage.ManPageGenerator.config: java.lang.NoSuchMethodException: picocli.codegen.docgen.manpage.ManPageGenerator$Config.<init>()
   at picocli.CommandLine$Model$CommandReflection.buildMixinForMember(CommandLine.java:12055)
   at picocli.CommandLine$Model$CommandReflection.initFromAnnotatedTypedMembers(CommandLine.java:11930)
   at picocli.CommandLine$Model$CommandReflection.initFromAnnotatedMembers(CommandLine.java:11909)
   at picocli.CommandLine$Model$CommandReflection.extractCommandSpec(CommandLine.java:11842)
   at picocli.CommandLine$Model$CommandSpec.forAnnotatedObject(CommandLine.java:6388)
   at picocli.CommandLine.<init>(CommandLine.java:230)
   at picocli.CommandLine.toCommandLine(CommandLine.java:3631)
   at picocli.CommandLine.access$16700(CommandLine.java:148)
   at picocli.CommandLine$Model$CommandReflection.initSubcommands(CommandLine.java:11874)
   at picocli.CommandLine$Model$CommandReflection.extractCommandSpec(CommandLine.java:11840)
   at picocli.CommandLine$Model$CommandSpec.forAnnotatedObject(CommandLine.java:6388)
   at picocli.CommandLine.<init>(CommandLine.java:230)
   at picocli.CommandLine.toCommandLine(CommandLine.java:3631)
   at picocli.CommandLine.access$16700(CommandLine.java:148)
   at picocli.CommandLine$Model$CommandReflection.initSubcommands(CommandLine.java:11874)
   at picocli.CommandLine$Model$CommandReflection.extractCommandSpec(CommandLine.java:11840)
   at picocli.CommandLine$Model$CommandSpec.forAnnotatedObject(CommandLine.java:6388)
   at picocli.CommandLine.<init>(CommandLine.java:230)
   at picocli.CommandLine.<init>(CommandLine.java:224)
   at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:132)
   at io.quarkus.runtime.Quarkus.run(Quarkus.java:71)
   at io.quarkus.runtime.Quarkus.run(Quarkus.java:44)
   at io.quarkus.runner.GeneratedMain.main(Unknown Source)
remkop added a commit that referenced this issue May 6, 2024
remkop added a commit that referenced this issue May 6, 2024
@remkop
Copy link
Owner

remkop commented May 6, 2024

Sorry I dropped the ball on this...
I just created a test without Quarkus, that seems to work fine.
This seems to be a Quarkus issue. Have you asked the Quarkus maintainers about this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants