Recovering Eclipse workspaces from CDT errors

I use unison to synchronize work environments between different workstations (more convenient than rsync IMO), and include the eclipse workspace in the synchronized directory. The problem is sometimes, if the remote eclipse is running, sync will corrupt some workspace state that prevents Eclipse from running. This happens to me every 2-3 months.

Eclipse displays an error message to look at eclipse-workspace/.metadata/.log, which contains something like:

A solution that has worked for me previously (found online) is removing *.snap in eclipse-workspace/.metadata/.plugins/org.eclipse.core.resources:

Some times I had to re-import the projects into the workspace, but otherwise worked fine.

If you’re here you’ve probably had similar problems.. Good luck and hope this helps!

Posted in Tech Blog.

Leave a Reply

Your email address will not be published. Required fields are marked *