BackupGGCode / open-source-spin-compiler

A C/C++-based port of the Parallax Propeller Spin/PASM Compiler
0 stars 0 forks source link

Feature need line number for errors #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I don't see an Enhancement field on issues.

The compiler should tell us the line number for compiler errors.
The character number on a line would also be nice.

Example: test_cache - Error at (892,1) ....

Here's an error I see now - will file a defect later.

$ ~/PropComp/open-source-spin-compiler-read-only/propcomp test_cache.spin
Propeller Spin/PASM Compiler (c)2012 Parallax Inc. DBA Parallax Semiconductor.
Compiled on Jan 21 2012
Compileing test_cache.spin...Expected "=" "[" "," or end of line
Failed.

Original issue reported on code.google.com by jsden...@gmail.com on 21 Jan 2012 at 6:02

GoogleCodeExporter commented 9 years ago
This is an Enhancement, not a Defect. It gives me the option to change it to 
Enhancement, no worries.

Original comment by reltham on 22 Jan 2012 at 9:16

GoogleCodeExporter commented 9 years ago
I'll handle this one.

Original comment by reltham on 22 Jan 2012 at 9:17

GoogleCodeExporter commented 9 years ago
The change for this is done now. The format looks like this:
filename.spin(100:4) : error : Error message.  
There are some errors that do not have a specific line number, like when the 
object size is too big, or the file is not found, so it just omits the (##:##) 
portion.

Original comment by reltham on 22 Jan 2012 at 9:24