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

Report compilation failure better than "process command finished with non-zero exit code 1" #249

Open
vlsi opened this issue May 28, 2023 · 0 comments

Comments

@vlsi
Copy link

vlsi commented May 28, 2023

Describe the bug

Sample output:

Benchmark classes should not be final.
   [org.apache.jmeter.testelement.property.PropertyGetBenchmarkKotlin]


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':src:core:jmhRunBytecodeGenerator'.
> Process 'command '/.../java/17.0.7-librca/bin/java'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

Of course, the output does include "Benchmark classes should not be final", however it was not that obvious.
It would be much better if "what went wrong" highlighted the true error rather than "non-zero exit code".

To Reproduce

Generate a benchmark within a final class.
JMH wants benchmark classes to be non-final, so it fails the compilation.

The failure reason should have compilation errors or something like that.

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

1 participant