Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Trying to create project in a sub folder under the workspace path fails: Invalid project description
Trying to create project in a sub folder under the workspace path fails: Invalid project description [message #1729607] Fri, 15 April 2016 17:14 Go to next message
Eclipse UserFriend
Hello to the forum members,

Is it a known limitation that it is not possible to create projects in sub-folders of the workspace ?

When I try to create project using this API:
org.eclipse.core.resources.IProject.create(IProjectDescription description, IProgressMonitor monitor)
It fails if the location of the project is a sub-folder of the workspace folder.
For example: suppose the location of the workspace is C:\temp\workspace and there is a folder named "MyProject" under it. If I try to create a project named "test in that location (C:\temp\workspace\MyProject), I get ResourceException with the string "Invalid project description". If I debug Eclipse, I see that the error is set in org.eclipse.core.internal.resources.LocationValidator in method validateProjectLocationURI. There is another message set in the status that triggers the exception:
C:\temp\workspace\MyProject overlaps the location of another project: 'MyProject'

I reproduced this behavior from 3.6.x to 4.5.x releases.

Thanks,
Gidi

Re: Trying to create project in a sub folder under the workspace path fails: Invalid project descrip [message #1729651 is a reply to message #1729607] Sat, 16 April 2016 21:45 Go to previous messageGo to next message
Eclipse UserFriend
Yes, there is an strongly-enforced requirement that a project created in the workspace must have the same name as its directory.

Brian.
Re: Trying to create project in a sub folder under the workspace path fails: Invalid project descrip [message #1729663 is a reply to message #1729651] Sun, 17 April 2016 07:45 Go to previous message
Eclipse UserFriend
Hello Brian,
Thanks for your reply. I'll align my plugin's behavior with this requirement.
Best regards,
Gidi

Previous Topic:Context Sensitive Help
Next Topic:Introducing MelnormeEclipse, a framework for building Eclipse-based IDEs
Goto Forum:
  


Current Time: Sun Mar 16 21:06:57 EDT 2025

Powered by FUDForum. Page generated in 0.03242 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top