Bug 991 : Auto Format Canceled: Too many left parentheses.
Last modified: 2008-11-03 07:01




Status:
RESOLVED
Resolution:
DUPLICATE of bug 867
Priority:
P2
Severity:
normal

 

Reporter:
Martin Lander
Assigned To:
fry

Attachment Type Created Size Actions
Screen dump of problem 991 image/jpeg 2008-11-01 05:43 55.30 KB
System Info image/jpeg 2008-11-01 06:11 44.07 KB
Javac Version/Properties image/jpeg 2008-11-01 06:12 40.68 KB

Description:   Opened: 2008-11-01 05:36
While this is a legitimate error in normal circumstances where the number
of left parentheses do not match the number of right parentheses I am
reporting this because the error was caused by a "#" not a parenthesis.

It is a problem because when I compile a larger program I get this error:
"Unexpected token:(" Note the left parenthesis.

I thought that Tools/Auto Format might help me to find it but I ended up
using the Edit/Find tool and counting both the left and right parentheses
and got the same number of each. So I know I don't have too many left
parentheses but it took a long time to discover the # was the problem.

The 2 code snippits I sent you both run but you can see the top one gives a
misleading error message.


Processing 0154 Beta.

OS: Vista Home Premium.

PC: ASUS PRO31F series

I would have liked to attach .jpg images and error files of my problem but
I can't see how to do in on the "Report a Bug" web page. There doesn't
appear to be an attach files function despite the fact that you state:
"Please use attachments to demonstrate the bug you are reporting."

Just drop this code into processing first with and then without the # in
the fill() function and you should see what I mean. The program that runs
is the one that produces the Auto Format error.

------------------------------------------------------------------------------------------
class Grid
{
Grid ()
{
fill(#ffffff);
rect(30, 20, 55, 55);
}
}
-------------------------------------------------------------------------------------------
Thanks

Craig
Additional Comment #1 From Martin Lander 2008-11-01 05:43
edit]
Screen dump of problem 991
Additional Comment #2 From Martin Lander 2008-11-01 06:11
edit]
System Info
Additional Comment #3 From Martin Lander 2008-11-01 06:12
edit]
Javac Version/Properties
Additional Comment #4 From fry 2008-11-03 07:01
yep, auto format just needs to be replaced.

*** This bug has been marked as a duplicate of 867 ***