[Mono-bugs] [Bug 69835][Wis] New - mcs syntax errors are way too verbose

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 23 Nov 2004 10:52:02 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by danw@novell.com.

http://bugzilla.ximian.com/show_bug.cgi?id=69835

--- shadow/69835	2004-11-23 10:52:02.000000000 -0500
+++ shadow/69835.tmp.6748	2004-11-23 10:52:02.000000000 -0500
@@ -0,0 +1,36 @@
+Bug#: 69835
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: danw@novell.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs syntax errors are way too verbose
+
+mcs says things like:
+
+syntax error, got token `IDENTIFIER', expecting AS IS CLOSE_BRACE
+OPEN_BRACKET CLOSE_BRACKET OPEN_PARENS CLOSE_PARENS DOT COMMA COLON
+SEMICOLON PLUS MINUS ASSIGN OP_LT OP_GT BITWISE_AND BITWISE_OR STAR PERCENT
+DIV CARRET INTERR OP_INC OP_DEC OP_SHIFT_LEFT OP_SHIFT_RIGHT OP_LE OP_GE
+OP_EQ OP_NE OP_AND OP_OR OP_MULT_ASSIGN OP_DIV_ASSIGN OP_MOD_ASSIGN
+OP_ADD_ASSIGN OP_SUB_ASSIGN OP_SHIFT_LEFT_ASSIGN OP_SHIFT_RIGHT_ASSIGN
+OP_AND_ASSIGN OP_XOR_ASSIGN OP_OR_ASSIGN OP_PTR
+generated/ComboBox.cs(158) error CS1026: , or ) expected
+
+The last line is the most useful bit. The "got token `IDENTIFIER'"
+is a little useful. The gigantic "expecting" list is not very useful at
+all, but it's by far the most visible part of the message.
+
+I would say it should only print the last line here. If you need/want
+the uberverbose error (though why would you unless you were debugging
+the compiler itself?) there could be a "mcs -v" flag or something.