Bug 520753

Summary: add a function to clean workspace from "unsaved changes in the previous session" that are corrupted
Product: [Eclipse Project] Platform Reporter: Ralf Hauser <hauser>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 4.7   
Target Milestone: ---   
Hardware: All   
OS: Linux   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=520746
Whiteboard:

Description Ralf Hauser CLA 2017-08-09 09:08:13 EDT
While trying to recover from Bug 520746 , upon startup of the latest eclipse, I created a dummy new workspace directory and chose this one.

Finally, eclipse started.

Unfortunately, as soon as I went to "File - Switch Workspace", it immediately died again
Comment 1 Ralf Hauser CLA 2017-08-09 09:31:05 EDT
it seems that as per
http://www.lazylab.org/197/eclipse/eclipse-hanging-on-startup-repair-corrupt-workspace/

~/workspace/.metadata/.plugins/org.eclipse.core.resources$ ls -lart
total 788
drwxr-xr-x 258 hauser hauser   4096 Apr 29  2008 .history
-rw-r--r--   1 hauser hauser 240910 May  9  2009 .snap~
drwxr-xr-x  93 hauser hauser   4096 Nov 25  2016 ..
drwxr-xr-x  86 hauser hauser   4096 Aug  8 19:38 .projects
drwxr-xr-x   2 hauser hauser   4096 Aug  9 12:27 .safetable
drwxr-xr-x   6 hauser hauser   4096 Aug  9 12:29 .
drwxr-xr-x   3 hauser hauser   4096 Aug  9 12:29 .root
-rw-r--r--   1 hauser hauser 539997 Aug  9 13:28 686.snap
hauser@armin2:~/workspace/.metadata/.plugins/org.eclipse.core.resources$ mv 686.snap disabled.686.snap

==> renaming the .snap, solved it!