Created Tue, 29 Jan 2013 04:22:10 +0000 by YOBE.
Tue, 29 Jan 2013 04:22:10 +0000
When you compile with Mpide and you have an error in your program, the system gives a unclear feedback on the location of the problem.
Can this be solved??
I also use "Processing" a lot and there the error handeling is very clear.
cpp:62:12: error: 'class HardwareSerial' has no member named 'prints' Location is not aiming to the syntax error.
Greets, Yobe
Tue, 29 Jan 2013 22:53:19 +0000
This has to do with the way the MPIDE does preprocessing of code to include libraries. This problem exists for Arduino as well. There are efforts in the chipKIT as well as Arduino community to address issues like this.
Jacob
Wed, 30 Jan 2013 00:55:14 +0000
So for the moment this is something we need to accept.
Good to know it is not related to some version update.
Thank you
Wed, 30 Jan 2013 01:42:46 +0000
You don't have to accept it, you can help fix it.
Jacob
Wed, 30 Jan 2013 12:20:41 +0000
I am willing to support in this. Improving is the way to go.
Where should I be?
Wed, 30 Jan 2013 18:33:46 +0000
Not a new issue.
FORTRAN from the 60s & 70s. C from the 70s & 80s. C++ from the 80s & 90s. XYZ from the 90s through the 20XXs.
Compilers usually scan past an error before they can determine that there was an error. Leave off an ), }, or ; and see this in action.
Look above the reported line number to find the real problem. This has been a frustration since high level languages were created.
James
Wed, 30 Jan 2013 21:22:39 +0000
The issue with MPIDE is that it adds lines of code to your sketch before compiling to try to make including libraries easier to use. This means when the code is compiled its line numbers do not line up with what is in the MPIDE editor. This is not a problem with the gcc compiler but with the way MPIDE pre-processes the files before sending them to the compiler.
If you want to help, download the MPIDE code and start learning how the build system works.
https://github.com/chipKIT32/chipKIT32-MAX
Jacob