From 8823b5ba79c9677202e3a34bc6d1e77b1cdf5f6a Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sat, 13 Jun 2009 12:31:54 +0000 Subject: [PATCH] Ignoring lines of error messages with "In file included from" in them. --- app/src/processing/app/debug/Compiler.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/processing/app/debug/Compiler.java b/app/src/processing/app/debug/Compiler.java index f081bdafb..9368587c2 100644 --- a/app/src/processing/app/debug/Compiler.java +++ b/app/src/processing/app/debug/Compiler.java @@ -296,6 +296,9 @@ public class Compiler implements MessageConsumer { // ignore cautions if (s.indexOf("warning") != -1) return; + // ignore this line; the real error is on the next one + if (s.indexOf("In file included from") != -1) return; + // jikes always uses a forward slash character as its separator, // so replace any platform-specific separator characters before // attemping to compare @@ -306,7 +309,7 @@ public class Compiler implements MessageConsumer { String partialTempPath = null; int partialStartIndex = -1; //s.indexOf(partialTempPath); int fileIndex = -1; // use this to build a better exception - + // check the main sketch file first. partialTempPath = buildPathSubst + primaryClassName; partialStartIndex = s.indexOf(partialTempPath); @@ -324,7 +327,7 @@ public class Compiler implements MessageConsumer { partialStartIndex = s.indexOf(partialTempPath); if (partialStartIndex != -1) { fileIndex = i; - System.out.println("fileIndex is " + fileIndex); + //System.out.println("fileIndex is " + fileIndex); break; } }