Report raw paths, not URLs, convert when needed
This commit is contained in:
@@ -208,7 +208,7 @@ public class CompilerRunnerUtil {
|
|||||||
message.setLength(0);
|
message.setLength(0);
|
||||||
|
|
||||||
String rawPath = attributes.getValue("path");
|
String rawPath = attributes.getValue("path");
|
||||||
path = rawPath == null ? null : "file://" + rawPath;
|
path = rawPath == null ? null : rawPath;
|
||||||
line = safeParseInt(attributes.getValue("line"), -1);
|
line = safeParseInt(attributes.getValue("line"), -1);
|
||||||
column = safeParseInt(attributes.getValue("column"), -1);
|
column = safeParseInt(attributes.getValue("column"), -1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class MessageCollectorAdapter implements MessageCollector {
|
|||||||
@NotNull CompilerMessageLocation location
|
@NotNull CompilerMessageLocation location
|
||||||
) {
|
) {
|
||||||
CompilerMessageCategory category = category(severity);
|
CompilerMessageCategory category = category(severity);
|
||||||
compileContext.addMessage(category, message, location.getPath(), location.getLine(), location.getColumn());
|
compileContext.addMessage(category, message, "file://" + location.getPath(), location.getLine(), location.getColumn());
|
||||||
if (severity == CompilerMessageSeverity.EXCEPTION) {
|
if (severity == CompilerMessageSeverity.EXCEPTION) {
|
||||||
LOG.error(message);
|
LOG.error(message);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user