Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eclipse recovering from crash

I had eclipse open when my computer crashed - now I've restarted and there are various errors in my project. It appears as if some files do not contain recently made changes. I am quite sure I saved everything before the crash. Does anyone know the best way to recover?

like image 201
george smiley Avatar asked Aug 12 '10 03:08

george smiley


3 Answers

You need to remove org.eclipse.core.resources from your 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.

like image 75
andi Avatar answered Oct 31 '22 21:10

andi


You probably just need to refresh each of your projects (select them in the Project Explorer and hit F5) and then clean and build them.

If your source files truly lost work it's probably because you didn't save them (most likely) or there's some bug with Eclipse or one of its plugins (far less likely).

like image 35
Mark Peters Avatar answered Oct 31 '22 23:10

Mark Peters


Refresh your whole workspace and rebuild the projects.

Then compare your workspace to the files in the source repository to see what changes you have.

like image 30
Thorbjørn Ravn Andersen Avatar answered Oct 31 '22 23:10

Thorbjørn Ravn Andersen