From ef90a333ba4bfee122524fc3fa76a7f96fb67bd7 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Tue, 24 Apr 2012 20:18:30 +0400 Subject: [PATCH] Prefix paths with the "file://" protocol This is required for error positioning --- idea/src/org/jetbrains/jet/plugin/compiler/JetCompiler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/idea/src/org/jetbrains/jet/plugin/compiler/JetCompiler.java b/idea/src/org/jetbrains/jet/plugin/compiler/JetCompiler.java index ae73873f46c..d0b9ab3d1fe 100644 --- a/idea/src/org/jetbrains/jet/plugin/compiler/JetCompiler.java +++ b/idea/src/org/jetbrains/jet/plugin/compiler/JetCompiler.java @@ -453,7 +453,8 @@ public class JetCompiler implements TranslatingCompiler { message.setLength(0); - path = attributes.getValue("path"); + String rawPath = attributes.getValue("path"); + path = rawPath == null ? null : "file://" + rawPath; line = safeParseInt(attributes.getValue("line"), -1); column = safeParseInt(attributes.getValue("column"), -1); }