Community
Participate
Working Groups
When workspace location is set to not-existing directory, and Eclipse cannot create it (no write permissions for upper directory, etc), the following message is displayed: "Workspace is already in use". It can confuse user. Text like "Cannot create workspace: /a/b/c/d" may be more useful.
Problem can be fixed by modification of 2 files: BasicLocation.java - setURL() and lock() methods are affected IDEApplication.java - checkInstanceLocation() is affected. Patch will be proposed ASAP.
*** Bug 107109 has been marked as a duplicate of this bug. ***
Created attachment 26220 [details] Problem fix patch
Additional check is performed after workspace lock fails. It can occur either due to another lock, or because of workspace directory absence. The 2nd case is now reported.
You mention that there are code changes in BasicLocation but that code isn't included in the patch. We only close and mark bugs as FIXED when the code has been released to the repository. Re-opening to move to UI since the patch contains only UI code. They can close it if indeed the code has been released and the problem fixed in the builds.
Modification in BasicLocation.java was not required indeed. Comment from 16.08 was preliminary estimation only. What about wrong state I've put bug, it's my fault. Sorry.
*** Bug 110582 has been marked as a duplicate of this bug. ***
so is there a new patch coming Oleg?
Proposed patch seems to be actual.
Oleg, thanks for the patch and hard work, I have a few concerns: - calling File.mkdirs() can create folders so doing this in the UI as a check is not a good idea - the Location interface in Core/Runtime should provide more information about what went wrong and the UI will expose that information to the user as appropriate as we can not be sure that we are dealing with a file based location similar to Basiclocation So after discussing with DJ, I'm updating the message slightly for 3.2 and moving this bug to Runtime to address changes in BasicLocation in the future
see bug 131891, this is likely a dup of that.
*** This bug has been marked as a duplicate of bug 67220 ***