Zac Sweers
06/24/2026, 7:16 PMZac Sweers
06/24/2026, 7:30 PMZac Sweers
06/24/2026, 7:35 PMjoffrey
06/24/2026, 9:36 PMjoffrey
06/24/2026, 9:36 PMZac Sweers
06/25/2026, 2:21 AMZac Sweers
06/25/2026, 2:21 AMZac Sweers
06/25/2026, 2:32 AMjoffrey
06/25/2026, 6:11 AMit looks like this is doing some extra stuff to print the source range + the underlining carets to point it out?
Indeed, on the Kotlin Toolchain side, we process structured compiler diagnostics provided by the Build Tools API, and format them manually in this pretty rust-like format via the class you have already found. In Gradle, I'm not sure who's responsible for printing. Maybe the Kotlin Gradle Plugin prints the diagnostics in this more simple form, or maybe it forwards compiler diagnostics to Gradle in a Gradle-specific structured diagnostic format, and Gradle prints it. Either way, I guess it's out of your hands as a compiler plugin author, which is why I was wondering whether you print the message yourself from the compiler plugin, or you forward this pretty message inside a compiler diagnostic.
joffrey
06/25/2026, 6:14 AMjoffrey
06/25/2026, 6:31 AMjoffrey
06/25/2026, 7:40 AMZac Sweers
06/26/2026, 3:16 PMZac Sweers
06/26/2026, 3:18 PMjoffrey
06/27/2026, 10:04 PMjoffrey
06/29/2026, 9:42 AMZac Sweers
06/29/2026, 3:46 PMZac Sweers
06/29/2026, 3:47 PM