Sign up ×
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

When compiling for Arduino via the Stino plugin line numbers are not represented correctly in the output. For example, I have an error on line 117 however the output is: sketch_name.ino.cpp:136:1: error:

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The #line preprocessor directive is used to tell GCC both what the next line should be numbered as and what filename should be reported, and the plugin is not generating them properly. This is therefore a Stino bug.

share|improve this answer
    
In that case, couldn't you just add a #line 1 at the top of the ino file? – Gerben Mar 5 at 20:38
    
Sure, but that shouldn't be the responsibility of the programmer. – Ignacio Vazquez-Abrams Mar 5 at 20:39
    
Thanks for the suggestions. I tried the #line 1 suggestion @Gerben however the errors are still showing on the wrong line. – aburdi Mar 6 at 16:03
    
Also thanks @IgnacioVazquez-Abrams I've added this to the issues on the Stino github repository. – aburdi Mar 6 at 16:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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