It can happen to everyone using Eclipse: launching Eclipse with workspace, and then it is stuck loading it. As a last resort, create a new workspace and go on? Possible, but painful, right? For some time I have a strange issue nagging me: from time to time, I’m not able to switch to a workspace which worked before. The IDE starts loading, but then is stuck:
The problem happens to me for multiple versions of Eclipse, including Oxygen (4.7). What I have found out is that it is because of some views open in the workspace, and they somehow might block the Eclipse startup. For example the Processor Expert ‘Component Repository’ view can cause this in Eclipse Neon (4.6) or Oxygen (4.7).
So the usual workaround was to open that workspace with another instance of Eclipse (not having that view), closing that view in the Eclipse Perspective and then I was able to load that workspace again.
Knowing that this has something to do with the perspectives and views, and thanks to a tip (thank you, Livio!), I finally have found the solution to unblock such a workspace :-).
Inside the workspace .metadata folder, there is a file named workbench.xmi:
This file stores the perspective window arrangements. So after deleting that file, the IDE windows are reset and I’m now able to load that workspace again :-).
I hope this tip is useful for everyone having such an occasional problem.
Happy Reloading 🙂