[Mono-list] Emacs parsable compilation errors from mcs

Per Arneng pt99par@student.bth.se
Fri, 19 Apr 2002 09:02:13 +0200


Well all the compiler options are unix style then why not go all the way and 
be more compatible with unix tools..    as i said grep , gcc,emacs ... so i 
think it is better.. 
But i see your point with compatibillity with other programs C# tools.. .. but 
since it is souche a trivial thing to change then what about a compiler 
option.. emacs mode as default and an option for csc.exe compatibillity.. And 
as i understand it is that mono is primarily for unix then why not go the 
unix way :)

example:
--errorformat unix    , -e unix  (default)
--errorformat csc     , -e csc     

/per

p.s.: if i hard to read the email its becouse i just woke up :)

On Friday 19 April 2002 04:20, you wrote:
> Ugh no, please don't. Leave it compatible with all the other existing C#
> tools out there.
>
> Surely you can alter emacs to parse the C#-like errors correctly? Or
> just run it through a sed script...
>
> Piers.
>
> -----Original Message-----
> From: Per Arneng [mailto:pt99par@student.bth.se]
> Sent: Thursday, April 18, 2002 2:03 PM
> To: mono-list@ximian.com
> Subject: [Mono-list] Emacs parsable compilation errors from mcs
>
>
> Hi!
>
> I would like to see mcs output its errors in an emacs parsable error
> format
> that enables you to click on the compilation error and get to the line
> in
> that file. To make mcs do this the only things that have to change are
> the
> following.
>
> Compilation errors ________________________________
>
> file.cs(21) error CS1002: ...
>       to
> file.cs:21: error CS1002:
>
> As you see the '(' and the ')' are substituted with ':'
>
> Parsing errors ___________________________________
>
>   ./ThreadTest.cs (4,2), Token:422
>       to
>  ./ThreadTest.cs:4:2:, Token:422
>
> replace the '(' and ')' and ',' to ':'  and remove the space between the
> file
> and the first ':'
> ______________________________________________
>
> here is the mcs script that fixes the compilation error but not the
> parsing
> errors to emacs mode:
>
> http://hus11.rsn.bth.se/~pure/mcs
> ________________________________________________
>
> This would be great.. !  at least as a compiler option :)
>
> gcc , javac and others also use this format btw..
>
> Best Regards Per Arneng
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list