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.

  • 2
    Because 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.
    – Majenko
    Oct 25, 2015 at 12:25
  • 1
    I 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. Oct 25, 2015 at 14:26
  • Update your IDE version to 1.6.x . That should fix your issue.
    – Avamander
    Jan 22, 2016 at 22:04

1 Answer 1


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.