Recovering a corrupt Eclipse workspace
Today as I sat down at my cubicle and did my daily routine to initiate eclipse. I encountered a horrible sight; eclipse would start and all of a sudden just crash.
I first tried the obvious solution, to clean out the workspace.
./eclipse -clean
Nope, no go, still eclipse kept crashing. Ugh, I fell into despair, all those key-binds and spring templates, all gone. So, rationally I hopped on to #eclipse on irc.freenode.net to get some feed back on my situation. Rcjsuen was kind enough to provide the answer that would solve my problem.
The solution was fairly straight forward. I had to remove org.eclipse.core.resources from my workspace.
cd ~/Documents/workspace/.metalog/.plugins rm -rf org.eclipse.core.resources
By removing org.eclipse.core.resources, you clear out all the project metadata from your workspace. However, don’t worry, once you start eclipse you can just go to “File -> Import -> import eclipse projects” and re-import all your workspace projects.
Leave a Reply
Pingbacks/Trackbacks
- Eclipse locking up/not responding? Try this … « Sarath's Blog
- My project data disappeared from Eclipse IDE. | Kode Pool
- Confluence: Development Tools
- Fixing SAP HANA Studio Crashes On Loading Workbench Splashscreen | We Predict Blog
- Restoring Eclipse workspace, preserving Git status | inbytebg-techblog.com
Thank you, this got me past the “eclipse splash screen shows then empty dialog” issue.
You are a king.
I am having a similar, but slightly different, problem with Eclipse Helios x86-64 on Windows Vista, but this fix did not work for me.
My issue is when I attempt to start Eclipse, I am getting a “Unhandled event loop exception” from org.eclipse.ui. looking back through the console log I find a !SUBENTRY 1 message that reads “!MESSAGE Plug-in org.eclipse.mylyn.tasks.ui was unable to load class org.eclipse.mylyn.internal.tasks.ui.TaskTrimWidget. !STACK 0″ org.eclipse.core.runtime.internal.adapter.EclipseLazyStarter$TerminatingClassNotFoundExceptio: An error occurred while automatically activating bundle org.eclipse.mylyn.tasks.ui (1154)”
Thanks a lot, worked well for me.
just removed markers.snap
Thanks! My Eclipse (Indigo) suddenly locked up while I was using, after months and months of working without problems. Every time I would start it, it would lock up immediately after the splash screen closed and the main GUI displayed.
In my case, I moved org.eclipse.core.resources to a backup location and started Eclipse. I got lots of “file not found” errors for files that were open but it couldn’t find the files because the projects were no longer part of the workspace. I closed all the files and exited. I restarted one more and verified it would start without errors or lock ups. Then I moved the old org.eclipse.core.resources back into the Eclipse dir and restarted and it was fine! No lock ups and I didn’t lose any projects or work.
Worked like a charm! Thanks for posting.
thanks sooo much!!
i would have given up eclipse if this thing kept going!!
I had to erase the entire workspace/.metadata directory before eclipse would load.
Great, this is the first solution that worked.
Tanks a lot.
Thanks!!! worked!
Worked for me!!
Thanks a lot!!
This worked sooo well,thanks. Now i can work again…wait a minute, thats not good lol
It worked just fine! thanks!
Thanks a lot… it really worked an save some hard work …
Most of the time, deleting the .snap file was enough.
This way u don’t have to import your whole project(s) again.
Hi Frens,
I am facing same issue in my eclipse I am trying same solution what Victor says but I did not get
“File -> Import -> import eclipse projects” what does mean of import eclipse project ? To avoiding/recover lost workspace we removing rm -rf org.eclipse.core.resources this folders right ? How can I get it back my old workspace setup back ..? still I am not getting anyone willing to help ?
Thanks,
Sagar Vyas
Thanks a lot ! It helped in a crucial situation
Excellent. it worked very well.
Buenisimo…Gracias por la informacion
No matter if some one searches for his essential thing, therefore he/she wants to be available that
in detail, so that thing is maintained over here.
Clutch…
simple and neat…
Its really helpful for me. Thanks for your post.
Hi, I tried different way and it worked. Check it out
http://errorkode.com/viewtopic.php?f=20&t=8&sid=40cff1661bf0ace12878d6d6fb7e75ac
Thanks, this worked. I had to delete the entire .metadata directory though.
kwalitatieve heren horloges
Great tips. Saved my day.
Awesome !!! Thanks a lot
It’s really helpul…thanx
Thanks for sharing!
That was really helpfull thanks
Phew, mate, you saved my ass! Hours of frustration after migrating from windows to ubuntu. Old absolute paths, missing android platforms, big mess!
That solved my problem thanks!
Wonderful ! Thanks a lot !
Thank you so much for this article. I’ve been having this issue with SAP HANA Studio, which is based on Eclipse, and this helped me to solve the problem.
I’ve detailed the SAP HANA Studio specific steps in a post here: http://blog.wepredict.co.uk/2013/11/sap-hana-studio-crashes-on-loading.html
thx a lot
Do you mind if I quote a couple of your posts as long as I provide credit and sources back to your blog?
My website is in the exact same niche as yours and my visitors would really benefit from some of the information you present here.
Please let me know if this alright with you. Regards!
Simply amazing!!!
Thanks a ton!! saved my whole night.. 🙂
Where do i find these org.eclipse.core.resources in a macbook? i don’t no where to find them
Omg, thank you so much.
It worked like a charm 🙂
Many thanks, it worked for me too……..
This worked for me:
1. Copy org.eclipse.core.resources to another location
2. Delete org.eclipse.core.resources from the workspace
3. Launch eclipse (no more projects on the left pane/project explorer) then close it again
4. Copy org.eclipse.core.resources back to the workspace (~/Documents/workspace/.metalog/.plugins)
5. Launch eclipse again. You’ll see that the projects are back!
In this way, you need not re-import all the projects again. 🙂
Excellent. It worked for me
Thanks Vaidhi
This was really helpful.
Thanks for the valuable information.
This solution worked and saved the day. However, I loose my eclipse Kepler 4.3 ARM projects several times a month, especially within multiple vbox VMs. How about eclipse solving the bug or problem whereby an errant metadata save clears out the metadata and attempts to save it again up to 3 times. Hopefully this would catch the one time error and overwrite the metadata files successfully.