Skip to content

Commit 42fac10

Browse files
committed
Fix display of error messages with colon
Previously error message was truncated where a colon appeared.
1 parent 7dbc9e6 commit 42fac10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/leinardi/pycharm/mypy/mpapi/MypyRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ private static List<Issue> parseMypyOutput(InputStream inputStream) throws IOExc
334334
String path = splitPosition[0].trim();
335335
int line = splitPosition.length > 1 ? Integer.parseInt(splitPosition[1].trim()) : 1;
336336
int column = splitPosition.length > 2 ? Integer.parseInt(splitPosition[2].trim()) : 1;
337-
String[] splitError = rawLine.substring(typeIndexStart).split(":", -1);
337+
String[] splitError = rawLine.substring(typeIndexStart).split(":", 2);
338338
SeverityLevel severityLevel = SeverityLevel.valueOf(splitError[0].trim().toUpperCase());
339339
String message = splitError[1].trim();
340340
issues.add(new Issue(path, line, column, severityLevel, message));

0 commit comments

Comments
 (0)