View previous topic :: View next topic |
Author |
Message |
icefield
Joined: 09 May 2005 Posts: 20 Location: Canada
|
Compiler generates one error at a time? |
Posted: Mon May 09, 2005 8:36 am |
|
|
I've been working with the CCS complier for a bit over a year now, but something has always bugged me - it only generates one error message at a time (I'm using the CCS compiler's IDE, F9 function key to initiate the compile).
For small projects this is OK, but for, say, a major revamp of a 6000 line project, it means a lot of waiting around as each error is picked up, one .... after .... the .... other.
This is the only compiler I've ever used that metes out errors this slowly It won't even pick up two syntax errors in the same line of code!
I've searched the manual and list for ideas, I've tried the on-line help and various places within PICC where settings can be changed, but I've found no reference to this.
Am I doing something wrong? |
|
|
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
|
|
Posted: Mon May 09, 2005 8:53 am |
|
|
You can manage these adding extra options commands following the
compiler invoking command.
The option +EA enable to show all warnings and all error mesages.
you can find all this extra commands to "personalize the compiler behaviour"
in Invoking the Command line Compiler page 14 (Adobe pdf version)
Humberto |
|
|
Guest
|
|
Posted: Mon May 09, 2005 10:30 am |
|
|
Thanks Humberto,
Is this option available through the IDE? Surely there must be somewhere where command line arguments can be specified. I'm assuming the IDE launches the compiler as a command line...
I just tried putting the +EA in the ccsc.ini file (where the include directory path is already specified). This file (colocated with ccsc.exe) is supposed to be read when the compiler is run, but it seems to ignore the option when the compiler is run from the IDE. I tried putting +EA on the same line with the include file specification and on the second line of the file.
When I actually run CCSC from the command line, it also seems to ignore the options in ccsc.ini (contrary to how I read the manual). Complains about finding the device file, even though ccsc.ini contains the proper include file path.
I like using the IDE - just wish I could get it to show more than one error at a time.
Cheers,
Erik |
|
|
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
|
|
Posted: Mon May 09, 2005 11:22 am |
|
|
Go to OPTIONS folder:
Code: |
_Select Formats
_Compiler
_Error File Select -> Multi-Lines
Mark ° Show all Errors
° Show Warnings
|
Best wishes,
Humberto |
|
|
icefield
Joined: 09 May 2005 Posts: 20 Location: Canada
|
|
Posted: Mon May 09, 2005 12:29 pm |
|
|
What Magic!
Thank you very much, Humberto.
Now I'm just thinking of all the time I've wasted watching the line compilation counter
I must say, it seems a curious place to put this sort of option (File Format???). I did not find it on my own, despite trying.
It also seems a curious choice for a default for the errors - I would think most people would want to see more than one error at a time, if possible.
By the way, what is the "Original" option? Also seems to give only one error message per compilation. |
|
|
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
|
|
Posted: Mon May 09, 2005 1:23 pm |
|
|
Quote: |
Now I'm just thinking of all the time I've wasted watching the line compilation counter
|
Itīs preferable late than never !!!
Also, donīt forget to select in:
Editor Properties
Code: |
- Display
Mark > - Show Line Number
|
Quote: |
It also seems a curious choice for a default for the errors - I would think most people
would want to see more than one error at a time, if possible.
|
Yes, Iīm agree with you, but may be frustrating for most starting people to see
all the errors after compile, and you know that the error checking are
concatenated and when you correct one, most time you are correcting more than one.
Keep well,
Humberto |
|
|
Ttelmah Guest
|
|
Posted: Mon May 09, 2005 2:02 pm |
|
|
The 'pity' is that there isn't the option of a set number of error lines. This is common with many compilers, where you can set them to show (say) the first ten errors, and avoids the problem of displaying a huge error list, but at the same time allows a bit more data than the single line display.
Best Wishes |
|
|
|