Recently, I had a strange behaviour with my Eclipse installation. I think the error occurred after I had to kill Eclipse due to some issue during a build. Afterwards Eclipse was unable to restore the workspace.
If you run into the same issue try these three things:
- Try to delete the following folder:
<Workspace DIR>/.metadata/.plugins/org.eclipse.core.resources/.snap
- If error still persists and using Eclipse 4 delete following file aswell:
<Workspace DIR>/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
- Create a new workspace and import projects. If you did set the broken workspace as default open the following file:
<Eclipse Home>\configuration\.settings\org.eclipse.ui.ide.prefs
In this file search for preference SHOW_WORKSPACE_SELECTION_DIALOG and set it to true.