1

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:

VE7JRO
2,51519 gold badges27 silver badges29 bronze badges
asked Mar 5, 2015 at 19:07

1 Answer 1

1

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.

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

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.