Skip to content

Commit

Permalink
Fix for reporting compile errors in .cpp & .c files
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Feb 26, 2015
1 parent 3cf5acf commit 120eee6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion arduino-core/src/processing/app/debug/Compiler.java
Expand Up @@ -796,7 +796,13 @@ public void message(String s) {

// Teensyduino specific error messages
if (BaseNoGui.isTeensyduino()) {
pieces = PApplet.match(s, "^(\\w+\\.\\w+):(\\d+):\\d+:\\s*error:\\s*(.+)\\s*");
if (verbose) {
String buildPath = prefs.get("build.path");
while ((i = s.indexOf(buildPath + File.separator)) != -1) {
s = s.substring(0, i) + s.substring(i + (buildPath + File.separator).length());
}
}
pieces = PApplet.match(s, "^(\\w+\\.\\w+):(\\d+):\\d+:\\s*error:\\s*(.+)\\s*");
String m = pieces[3].trim();
String err = null;
if (m.equals("'Keyboard' was not declared in this scope")) {
Expand Down

0 comments on commit 120eee6

Please sign in to comment.