Archive for December, 2007

Save Your Eclipse Workspace

Thursday, December 27th, 2007

This latest job is quite the mess. I’ll probably elaborate later, but for now I’ve been having issues with Eclipse. I’ve not been able to get it to start & actually work… it just sits there all day at the splash screen eating up about 45% cpu as it sleeps.

I finally just killed the process, started over, had the same thing happen. I wasn’t quite sure what to do - I’m on an AMD 64-bit dual core with 2 gigs of ram on Linux! I checked to make sure I was indeed using the Sun Java JVM for running - I was. I finally gave up & renamed the eclipse workspace directory’s .metadata - I thought this might be the issue as my 1 project has some directories with over 20k php files - that’s not including images, css, js, txt, etc files! Not to mention all of the subversion directories & files as well.

Eclipse started up almost instantly. So there was a problem with the workspace. Checking the .log file I noticed that where it was stuck was in ‘building the workspace’.

I like Eclipse, but 1 thing I find very frustrating is a lot of those nifty settings I like to make (like being able to see line numbers) are stored only in the workspace, so once the workspace is gone - poof, there goes all those settings as well. Luckily for me, I hang out in a number of channels on <irc.freenode.net> and somebody in #eclipse suggested I delete the ‘.metadata/.plugins/org.eclipse.core.resources/’ directory. Considering I like keeping some things before doing something drastic, I copied my ‘.metadata.bak/’ directory over the new ‘.metadata/’ directory, deleted the suggested directory, and started up Eclipse - instant Eclipse again! Unfortunately no projects.

This was good though - I now had all the settings I wanted to keep & just needed to set a few project specific settings to get back to where I was previously at…

  • Share/Save/Bookmark