Merge pull request #493 from dzaima/patch-1

Fix parsing of java error messages containing ":"
This commit is contained in:
Ben Fry
2022-06-19 08:52:48 -04:00
committed by GitHub

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);