We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Type VariableDeclarators
Page Index Toggle Pages: 1
Type VariableDeclarators? (Read 357 times)
Type VariableDeclarators?
Jan 21st, 2006, 6:30pm
 
I don't understand this syntax error I am getting:

C:/DOCUME~1/ANNIES~1/LOCALS~1/Temp/build39548.tmp/Temporary_6147_6981.java:1799:
1:1799:13: Syntax Error: "Type VariableDeclarators" inserted to complete LocalVariableDeclaration


C:/DOCUME~1/ANNIES~1/LOCALS~1/Temp/build39548.tmp/Temporary_6147_6981.java:1799:
1:1799:13: Syntax Error: ";" inserted to complete LocalVariableDeclarationStatement


C:/DOCUME~1/ANNIES~1/LOCALS~1/Temp/build39548.tmp/Temporary_6147_6981.java:1641:
24:1799:13: Syntax Error: "}" inserted to complete MethodBody



It is highlighting the last but one line of my code (almost 2000 lines!), which just consists of a right curly bracket. The code ran fine a minute ago, since when I have changed a couple of things, but nothing involving brackets, semi's etc. I've triple checked all the brackets right through the code, which I won't post here cos I don't suppose anybody else will want to go thru it.

It would help if I knew what "Type VariableDeclarators"  meant, and how it could relate to a single curly bracket, then I'd have an idea what I should be looking for.

Another weird thing is that if I block off the method causing the error using /* and */, it still highlights this line, even though it is greyed out. I've never seen it do this before. Any ideas?
Re: Type VariableDeclarators?
Reply #1 - Jan 23rd, 2006, 3:42pm
 
that probably means you're missing a semicolon, or a brace or paren isn't properly closed. or that you're /* */ block isn't properly working (you can't nest them, for instance).

basically what it means is that something in the code is malformed.  

these sort of errors are annoying, sorry.. there are a handful of bugs filed against specific instances to try to make things more helpful.
Page Index Toggle Pages: 1