[Mono-list] Emacs parsable compilation errors from mcs
Per Arneng
pt99par@student.bth.se
Thu, 18 Apr 2002 23:03:17 +0200
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