1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00

Ignoring lines of error messages with "In file included from" in them.

This commit is contained in:
David A. Mellis 2009-06-13 12:31:54 +00:00
parent cdf0095e70
commit 8823b5ba79

View File

@ -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;
}
}