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:
+2
-2
@@ -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 ")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user