Phantom syntax errors [message #892807] |
Fri, 29 June 2012 19:08 |
Jordan Munroe Messages: 1 Registered: June 2012 |
Junior Member |
|
|
Ever since upgrading to Juno, Eclipse is stopping me from building my project saying there are syntax errors(Where there are none)
For example, I just added this new line System.out.println("Comm Client Created"); and am getting the following error on that line Syntax error, insert ";" to complete Statement
As you can see, I clearly have a semicolon... I can right click the error in the "Problems" tab and hit delete to make the error go away and I can compile and run without any problems. I'm getting similar errors with closing curly brackets on any block.
I know it's not my code, I've been programming in C# for years and java syntax is almost identical. I can even cut and re-paste the offending line or block in place and the error will be gone.
[Updated on: Fri, 29 June 2012 19:09] Report message to a moderator
|
|
|
|
Re: Phantom syntax errors [message #893850 is a reply to message #892807] |
Thu, 05 July 2012 17:02 |
Francisco Marzoa Messages: 11 Registered: January 2012 |
Junior Member |
|
|
I can confirm this problem. It happened today to me also in the following line:
g.drawCenteredText(String.format(context.getString(R.string.about_panel_count), panelCount), 400, 360, versionPaint);
It insists in that I must add a semicolon there, where it is yet.
As you, I could simply remove the errors for the Problems view and it compiled fine.
I am using the latest Android ADT with Eclipse. Anyway it seems not to be related with ADT but with Eclipse itself.
Eclipse Platform:
Version: 3.7.0
Build id: I20110613-1736
Regards,
[Updated on: Thu, 05 July 2012 19:15] Report message to a moderator
|
|
|
Re: Phantom syntax errors [message #893878 is a reply to message #893850] |
Thu, 05 July 2012 19:13 |
Francisco Marzoa Messages: 11 Registered: January 2012 |
Junior Member |
|
|
I am not 100% sure, but it seems like some errors were not clear when they should.
For example, you write an incomplete for loop and save, then you will get an error on for token or so. You continue editing til the for loop is completed, save again, but the error message persists even when it has been solved, and the only way to get rid of it is deleting it from the Problems view.
[Updated on: Thu, 05 July 2012 19:13] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03439 seconds