Improve warnings and errors emitted by compiler in Gradle build

Make warnings and errors location clickable by using file URI scheme.
In most terminals and code editors (including IDEA) clicking on such uri
will open file at given line and offset.

^KT-51923 Fixed
This commit is contained in:
Yahor Berdnikau
2022-07-18 13:31:49 +02:00
committed by Space
parent c7131a68ce
commit 93a0cdbf97
@@ -19,9 +19,9 @@ class GradleStyleMessageRenderer : MessageRenderer {
append("$prefix: ")
location?.apply {
append("$path: ")
append("file://$path")
if (line > 0 && column > 0) {
append("($line, $column): ")
append(":$line:$column ")
}
}