Community
Participate
Working Groups
Eclipse 2.1, M5 (Build id: 200302061700) When importing a project into a workspace, sometimes I get the following error (not always, it depends of the project): ---> Invalid project description. //World/world/perm/dev/eclipse/workspace/ascii_time_sheet and //World/world/perm/dev/eclipse/workspace overlap. <--- For some projects, I could fix it by editing the file: //World/world/perm/dev/eclipse/workspace/ascii_time_sheet/.project and change the name from: <name>Ascii Time Sheet</name> to: <name>Ascii_Time_Sheet</name> ...essentially removing the space in the name. For other projects, this trick would not work and I would not be able to import it, the same "overlapping" error being reported. All of my projects I imported (or attempted to) are already stored in the directory specified with the -data command line option (set to //World/world/perm/dev/eclipse/workspace). They initially were not recognized by Eclipse because of a new install and a change of default workspace directory. This is why i used the import function to get them recognized by Eclipse. I mention this in case importing a project already stored in the workspace might be an issue or not. If the problem is on the user's side, please change the error message to be more helpfull.
I cannot find a reproducible case. Can you provide steps to reproduce this? I tried: 1) Create a simple project called "ascii time sheet" 2) Shutdown eclipse 3) Restart eclipse with new workspace 4) Import the existing project "ascii time sheet" -> Works fine. I also tried the same steps with a project called "ascii_time_sheet".
Created attachment 3926 [details] Example of a project that cannot be imported. This is an example of a project that cannot be imported.
I could reproduce the reported behaviour with RC2 using the provided project. To reproduce it it is required that: - the project location is an immediate child of the workspace root, *and* - the project name is different than the project directory. We are being passed a project description that does not have a default location (IProjectDescription#getLocation != null) and the non-default location overlaps with the workspace location - this is why the project description is invalid. It looks like the "Import Existing Project into Workspace" wizard (WizardExternalProjectImportPage) is not validating the project location (with IWorkspace#validateProjectLocation) before calling IProject#create. I think we should move it to Platform/UI (serviceability issue).
Agreed. This is a duplicate of bug 33684. The error is correct but the user should have been notified by a warning in the wizard. *** This bug has been marked as a duplicate of 33684 ***