mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 02:20:45 +01:00
fix error line numbers to be 1-indexed instead of 0-indexed
This commit is contained in:
@@ -300,9 +300,9 @@ public class Commander implements RunnerListener {
|
||||
// format the runner exception like emacs
|
||||
//blah.java:2:10:2:13: Syntax Error: This is a big error message
|
||||
String filename = sketch.getCode(re.getCodeIndex()).getFileName();
|
||||
int line = re.getCodeLine();
|
||||
int column = re.getCodeColumn();
|
||||
if (column == -1) column = 0;
|
||||
int line = re.getCodeLine() + 1;
|
||||
int column = re.getCodeColumn() + 1;
|
||||
//if (column == -1) column = 0;
|
||||
// TODO if column not specified, should just select the whole line.
|
||||
System.err.println(filename + ":" +
|
||||
line + ":" + column + ":" +
|
||||
|
||||
Reference in New Issue
Block a user