mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 02:20:45 +01:00
lots of fixes to error handling
This commit is contained in:
@@ -260,14 +260,14 @@ public class Compiler implements MessageConsumer {
|
||||
if (fileIndex == 0) { // main class, figure out which tab
|
||||
for (int i = 1; i < sketch.codeCount; i++) {
|
||||
if (sketch.code[i].flavor == Sketch.PDE) {
|
||||
if (sketch.code[i].lineOffset < lineNumber) {
|
||||
if (sketch.code[i].preprocOffset < lineNumber) {
|
||||
fileIndex = i;
|
||||
//System.out.println("i'm thinkin file " + i);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (fileIndex != 0) { // if found another culprit
|
||||
lineNumber -= sketch.code[fileIndex].lineOffset;
|
||||
lineNumber -= sketch.code[fileIndex].preprocOffset;
|
||||
//System.out.println("i'm sayin line " + lineNumber);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user