Fix parsing of java error messages containing ":"

This commit is contained in:
dzaima
2022-05-28 12:46:38 +03:00
committed by GitHub
parent e899f3dfcf
commit 449bf857f2

View File

@@ -133,7 +133,7 @@ public class Compiler {
// get first line, which contains file name, line number,
// and at least the first line of the error message
String errorFormat = "([\\w\\d_]+.java):(\\d+):\\s*(.*):\\s*(.*)\\s*";
String errorFormat = "([\\w\\d_]+\\.java):(\\d+):\\s*([^:]*):\\s*(.*)\\s*";
String[] pieces = PApplet.match(line, errorFormat);
//PApplet.println(pieces);