7
votes

Whenever I switch workspace on eclipse, I get the error:

An internal error occurred during: "Initializing Java Tooling". Duplicate field name&signature in class file org/eclipse/jdt/internal/compiler/ast/ASTNode

If I restart Eclipse, it then loads the new workspace correctly. Any ideas how I go about fixing this?

I'm using Eclipse Kepler on Windows 7

3
I just encountered the same error. Do you happen to have the Groovy plugin installed? Any other plugins that may have caused this? - btiernay
I don't have the Groovy plugin on mine. It happened around the time I installed the plugin for the Spring framework for me - rbennett485
What about Lombok? I too installed STS at some point. I think this may be related. - btiernay
I'm getting this. No groovy plugin, but I do have the Gradle plugin (included in STS I believe, though I don't have STS itself). Do have lombok too. - rich

3 Answers

3
votes

Yup, whoops, lombok bug. Sorry. It's been fixed; the next lombok version (looks like that'll be 1.14) will no longer have this issue. Until then, the edge release can be used if this is really cramping your workspace-switchin' style :)

http://projectlombok.org/download-edge.html

1
votes

Install the latest version of projectlombok.

1
votes

I had the same issue. After updating Gradle and anything else that I had installed in Eclipse, it still wouldn't work. For me it actually wouldn't be fixed by restarting Eclipse, as far as I could tell. I managed to fix it by downloading the latest release of Eclipse and extracting it over my current installation. Don't know if that'll work for you or not.