From 449bf857f281e928ec5eb523e8d13bfb07daf5dc Mon Sep 17 00:00:00 2001 From: dzaima Date: Sat, 28 May 2022 12:46:38 +0300 Subject: [PATCH] Fix parsing of java error messages containing ":" --- java/src/processing/mode/java/Compiler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/processing/mode/java/Compiler.java b/java/src/processing/mode/java/Compiler.java index 944ca442a..aaef2e8c3 100644 --- a/java/src/processing/mode/java/Compiler.java +++ b/java/src/processing/mode/java/Compiler.java @@ -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);