A newbe here. How come when I compile with an error I do not get the line or line number highlighted? I Get the errors just can't find where they are.
-
2Because the Arduino "IDE" is a mere toy. If you want real IDE facilities then you need to use a real IDE, not the sub-par text editor that is the Arduino IDE.– MajenkoOct 25, 2015 at 12:25
-
1I would also recommend to stop relying on that sort of hints. If you read the error message, you will find out that gcc not only tells you where it encounters the error, it also tells you why there is an error.– Igor StoppaOct 25, 2015 at 14:26
-
Update your IDE version to 1.6.x . That should fix your issue.– AvamanderJan 22, 2016 at 22:04
1 Answer
The line in error can often be highlighted, however because of the way the IDE plays with your source file this is not always the case.
See my post about How the IDE organizes things.
The IDE adds extra lines to your source, and then tries to hide that with #line directives. This can confuse the way error messages are handled. It is another example of the "helpful" IDE not always being helpful.
In any event, as Igor said, you can look for the line number in the error message and use that to find the error. Failing that, look at the quoted source code and search for that.