[Mono-list] Emacs parsable compilation errors from mcs
Piers Haken
piersh@friskit.com
Thu, 18 Apr 2002 19:20:24 -0700
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