Commit 7dc764f
committed
ScipBuildTool: only treat ERROR/EXCEPTION as kotlinc failures
Kotlin 2.2.0's K2JVMCompiler emits LOGGING messages on startup (e.g.
about the missing scripting plugin and Kotlin home directory). The
MessageCollector previously pushed *every* report() severity onto the
errors list, so hasErrors() returned true and the compiler returned
COMPILATION_ERROR even when nothing was actually wrong. The
LibrarySnapshotSuite consequently failed indexing
'org.jetbrains.exposed:exposed-core:1.0.0-beta-4' on CI without any
real diagnostic surfaced.
Only push to errors when severity.isError so hasErrors stays honest.1 parent d2c36e0 commit 7dc764f
1 file changed
Lines changed: 9 additions & 1 deletion
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
347 | 355 | | |
348 | 356 | | |
349 | 357 | | |
| |||
0 commit comments