ktlint-gradle icon indicating copy to clipboard operation
ktlint-gradle copied to clipboard

When Gradle is executed with --continue flag, report file isn't listed at the end of the console

Open JLLeitschuh opened this issue 6 years ago • 4 comments

I'm executing the gradle/gradle build sanityCheck task with the --continue flag.

Although the errors are reported during execution, they are not reported in the final error report printed at the end.

If you have very long logs, this means you have to dig for the resulting error.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':kotlinDsl:ktlintMainSourceSetCheck'.
> Process 'command '/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/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. Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':kotlinDsl:ktlintTestSourceSetCheck'.
> Process 'command '/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/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. Run with --scan to get full insights.
==============================================================================

JLLeitschuh avatar Jul 08 '19 17:07 JLLeitschuh

@JLLeitschuh is it really possible to print all errors in the end? :thinking:

Basically Gradle runs many tasks with the same name and there is not "meta" task that can collect it.

Tapchicoma avatar Jul 10 '19 08:07 Tapchicoma

I'll have to think about this. I think there is a way to do this, but I don't know what. Let me talk to some co-workers and get back to this.

JLLeitschuh avatar Jul 16 '19 18:07 JLLeitschuh

I'll have to think about this. I think there is a way to do this, but I don't know what. Let me talk to some co-workers and get back to this.

any chance to get more info on this please ?

ahmed3elshaer avatar Nov 03 '21 15:11 ahmed3elshaer

I suggest we look at some other tasks that generate reports and see if they do anything interesting

JLLeitschuh avatar Nov 05 '21 15:11 JLLeitschuh