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:
EDIT
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?