Bug 867 : Auto format gives "Too Many Right parentheses" error when there isn't.
Last modified: 2010-03-28 08:16




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
memo
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-08-06 05:14
Sometimes the auto-format doesn't format with the above error when the
compiler can compile and run the program. I haven't identified exactly when
it happens, but seems a bit random. I just had it now and identified (by
trial and error removing chunks of code) that the offending section was
pure comments! (with no mismatching parantheses :P)

Thread here
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Suggestions;action=display;num=1207366183;start=3#3

processing 0135 on Mac Pro & Macbook Pro, leopard 10.5.4
Additional Comment #1 From fry 2008-08-06 11:36
thanks for filing the bug, it's a known problem but i guess it hasn't been
in the bugs db yet.

autoformat will be replaced or heavily debugged for 1.0.
Additional Comment #2 From fry 2008-11-03 07:01
*** Bug 991 has been marked as a duplicate of this bug. ***
Additional Comment #3 From Cedric 2009-07-19 16:02
Ive tracked it down to this line :
everytime i add this to my code. even if it is an empty one. I get the "too
many Right..." error :

color[] gcolor = {#7DA79E, #35626D , #99CCAA , #EEE8C8 , #F9F9EF };
Additional Comment #4 From fry 2009-07-19 16:26
thanks for the test case. we really just need to rip out the autoformat...
Additional Comment #5 From Martin Lander 2009-07-24 05:10
(In reply to comment #4)
I am beginning to wonder if this fault is not somehow due to the underlying
Java Engine as I am having similar parenthesis paring problems using the
interactive grammar checker in Open Office running on PC under Windows Vista.
Additional Comment #6 From fry 2009-07-24 05:12
No, it's just a known Processing bug. We need to replace the auto-formatter
altogether, but it's a significant task to fix.
Additional Comment #7 From twodotone 2009-07-24 14:31
well...
I only get it when I use hex as a color parameter
example:

stroke(#76E9FF);

it works but prevents the auto-format to work.
Additional Comment #8 From MrFeinberg 2010-03-28 08:16
Fixed in an earlier commit