I have been programming since the age of 8 - that's about 30 years - and I haven't yet found a "professional" IDE quite as bad as the Arduino/Processing one. Even MPLAB-X, which is pretty bad IMHO, is tolerable in comparison.
The IDE is independant of the compiler, it simply echos the output from it.
Hopefully the error message is enough to find the location, otherwise you can guesstimate the line and look for an error near by.
A more advanced IDE will jump straight to the line, or at least have line numbers. Some people have set up code-blocks, vc++, eclipse and a few others for use with arduino.
I read here once that the compiler sent them "messages"; I think they were delusional.
I am doing something and have made a mistake - which I don't know about yet.
I click/press the "compile" button.
The IDE (now I know the name) displays an error at the bottom (in red) with the file name and a number which I am guessing to be the line of the code.
Example:
V2:81: error: variable or field 'loop' declared void
V2:230: error: variable or field 'loop' declared void
Yeah, terrific. 81, 230.
If it won't give me line numbers on the screen, why quote line numbers with errors?
maybe you have an un closed '{, }' combo, make sure all your functions have matching '{, }' brackets, and not extras lying around ( above 'void loop' )
although 'variable or field 'loop' declared void' seems like an incomplete struct or class has the loop function in scope ( still a missing closing bracket ).
pYro_65:
maybe you have an un closed '{, }' combo, make sure all your functions have matching '{, }' brackets, and not extras lying around ( above 'void loop' )
although 'variable or field 'loop' declared void' seems like an incomplete struct or class has the loop function in scope.
The error itself isn't the issue here.
This thread is about the uselessness of the IDE when reporting errors.
Oh, and the IDE does actually tell you which line you are on - a little white number in the extreme bottom left of the window (if you look close enough). Nothing to say that that's what it is, of course...
Well what causes this "error" completely defys my understanding.
In the code:
void loop()
{
top_menu(); // See Example_menu.pde
}
If I want to call "top_menu" with a paramater/value of 1, I change it to:
top_menu(1)
That's it.
Then the whole thing falls apart.
NOTE TO ALL READERS HERE AFTER.
I have worked out "another way" (or maybe the right way) to do what I wanted, so this is no longer a problem itself.
But the IDE is still problematic with how it shows errors.
The IDE doesn't number each line, but it does show the line number that the cursor is currently on. Click somewhere in the code. Check the line number. If if is higher than the line with the error, move up. Otherwise move down.
Keep in mind that the line number and column number are only approximate, in any case.