My script works seemed to be working perfectly well, but Eclipse 3.7.2 was telling me I had multiple errors on a random set of empty lines:

When I deleted the lines, all the errors bunched up into one lump, like this:

Here's the list it was giving me:

It turns out I did have an error in my code - I was using = to check for equality in an if statement. When I corrected this, ALL of the errors disappeared.
Why did that mistake cause the effects above?
This appears to be eclipse getting out of sync. I would do a clean and/or a refresh. In Eclipse sometimes things get cached. Sometimes I have to restart eclipse with the -clean option and everything clears up.
Since the script is working, that is what I'd try first.
Again, I know there are settings in eclipse that you can change for errors, but I don't believe any settings changes will show or hide errors on blank lines. At least that I'm aware of.
I assume that while you were working on the script there was originally no errors, but at some point during that process or when you completed it and saved it, then the errors showed up, correct? Did you try a full reboot?
It looks like eclipse is caching an old version of the file. To find out and stop guessing, use Firefox with firebug.
Steps:
I've had this throw me more than once, thinking a script was loaded when it was an older version of it and didn't load the newest. I've also had eclipse cache older versions of server side code and not refresh changes.
Here are some screenshots of firebug tabs during debugging:
Firebug Net tab loaded scripts example
Firebug Console tab with simple error example
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With