Skip to content

Commit 449bf85

Browse files
authored
Fix parsing of java error messages containing ":"
1 parent e899f3d commit 449bf85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/src/processing/mode/java/Compiler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public void close() { }
133133

134134
// get first line, which contains file name, line number,
135135
// and at least the first line of the error message
136-
String errorFormat = "([\\w\\d_]+.java):(\\d+):\\s*(.*):\\s*(.*)\\s*";
136+
String errorFormat = "([\\w\\d_]+\\.java):(\\d+):\\s*([^:]*):\\s*(.*)\\s*";
137137
String[] pieces = PApplet.match(line, errorFormat);
138138
//PApplet.println(pieces);
139139

0 commit comments

Comments
 (0)