Kotlin 2.4.20, Gradle 9.7.1 When -Werror option is...
# gradle
p
Kotlin 2.4.20, Gradle 9.7.1 When -Werror option is enabled and there is such warning, then I'm getting message about that without actual place where it happens
Copy code
* What went wrong:
Execution failed for task ':project:compileKotlinJvm'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.btapi.BuildToolsApiCompilationWork
   > Kotlin compiler error
       Kotlin compiler error
         warnings found and -Werror specified

// And then huge stack trace without valuable info. There is root cause part: 
Caused by: org.jetbrains.kotlin.gradle.tasks.CompilationErrorException: warnings found and -Werror specified
	at org.jetbrains.kotlin.gradle.plugin.diagnostics.DefaultCompilerDiagnosticsProblemsReporter.reportCompilerMessage(CompilerDiagnosticsProblemsReporter.kt:63)
	at org.jetbrains.kotlin.compilerRunner.btapi.ProblemsApiCompilerMessageRenderer.replayTo(ProblemsApiCompilerMessageRenderer.kt:88)
v
Scroll up
p
Copy code
> Task :project:compileKotlinJvm FAILED
Problem found: Kotlin compiler error (id: kotlin:compiler:error:compiler-error)
  Kotlin compiler error
    warnings found and -Werror specified

[Incubating] Problems report is available at: file:///home/user/project/build/reports/problems/problems-report.html
279 actionable tasks: 101 executed, 178 up-to-date
Configuration cache entry reused.

FAILURE: Build failed with an exception.
In problems-report.html there is the same stack trace
v
Scroll up
And make sure you are not fooled by youtrack.jetbrains.com/issue/IDEA-241844
p
Upper is just list of previous completed tasks
Checked in every item on left panel to see full log - nothing helpful
v
If there were warnings, they should have been printed before that message. Can you share a build
--scan
URL?
p
I will try to make small reproducer later
👌 1
t
it could be some Kotlin compiler internal error which currently we are not handling very well like normal compilation errors. Plus one to file an issue with repro