Cannot Open Workspace on Remote Volume? (Mac OS X)
Hi
I've been using Eclipse for quite some time, and never experienced this problem!
For technical reasons I will not go into here, I have to have my workspace on a linux server network share/remote volume. This has never been a problem when using Eclipse on Windows. I simply mounted the network share, and used it as a normal file system.
However, I've recently switched my Windows PC for a beautiful iMac G5. So far I've had no trouble with the switch, accept for Eclipse!
My Eclipse workspace is on smb://persephone/alasdair/Eclipse. So, I have connected my iMac to the share, and Mac OS X mounts it at /Volumes/alasdair. This is fine, as in theory my Eclipse workspace should now be /Volumes/alasdair/Eclipse. (The share is mouned read/write with the correct privileges, as only the IP address of my iMac can access the share.)
Every time I try to use the workspace, I simply get a "Workspace in use" error. I've removed any stale .lock files, and even removed the ENTIRE workspace and attempted to recreate it. Eclipse will create the workspace folder, but inside the .metadata file is a single .lock file that is created as soon as I try to use the workspace. Even if I keep deleting it, it comes back with each attempt. It's as if it's creating the workspace, locking it, and then trying to use it and seeing the lock!
Has anyone else experienced this issue?
Does anyone have a fix/workaround? :) I can't have the workspace on my Macintosh HD because it has to be compiled on Linux. I've always developed via the remote share so I can just use a terminal session to type 'make.'
I'm using Mac OS X Panther v10.3.8, but the problem was also around on v10.3.7 and v10.3.6.
Any response would be greatly appreciated. :)
==================================================
AlasdairM wrote:
Oh, yeah... long story short: Eclipse uses Java 1.4 file locking capabilities to prevent users from accidently opening the same workspace twice, what can cause data corruption. But file locking does not work well yet on a variety of VM/OS/file system combinations. The workaround is to disable file locking when running Eclipse by passing the following system property as VM arg:Has anyone else experienced this issue?
-Dosgi.locking=none
More information on this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=44735