Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 197566

Summary: [Import/Export] Project name with segment warning unclear
Product: [Eclipse Project] Platform Reporter: Bhagirath Patel <bhagirathuk>
Component: IDEAssignee: Platform UI Triaged <platform-ui-triaged>
Status: RESOLVED NOT_ECLIPSE QA Contact: Prakash Rangaraj <prakash>
Severity: normal    
Priority: P5 CC: bhagirathuk
Version: 3.2Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Bhagirath Patel CLA 2007-07-23 21:30:36 EDT
Creation Problem with Detail : "path for Project must have only one segment"
when importing project using "Import from Existing into workspace"
Comment 1 Tod Creasey CLA 2007-07-24 14:47:54 EDT
Can you give more detail? I am not sure what you are asking.
Comment 2 Bhagirath Patel CLA 2007-07-25 10:30:14 EDT
(In reply to comment #1)
> Can you give more detail? I am not sure what you are asking.

Tod, first of all thanx to consider this.
   I tried to create a project using GWT and created project structure under ECLIPSE's workspace. Open Eclipse and tried to import project using "Existing project into workspace". But it gives "Creation Erro" and detail says "Path for Project must have only one segment".
   Also, I tried to create project out of workspace(say somewhere c:\myfolder\MyProject), but still getting same error when try to import into workspace.
   Please let me have a way out of this. I will appreciate it...
   Thanks again Tod...
  -Bhagirath

Comment 3 Tod Creasey CLA 2007-07-25 12:46:02 EDT
Could you attach the .project file for the project you are trying to import?
Comment 4 Bhagirath Patel CLA 2007-07-27 15:29:30 EDT
(In reply to comment #3)
> Could you attach the .project file for the project you are trying to import?

Tod, this is Bhagirath...
   Answer to your question is I don't know as it does not tell me explicitly. Only gives pops up with ERROR window saying "Problem in Creation of Project" and detail says "Path for project must have only one segment".
   But Structure I created using GWT's projectCreator and appliationCreator commands worked fine and has .project file in my project folder under workspace.

   Is this answer you are expecting because what I saw had only this information. Help me Tod it is taking a lot of time and even googling for THIS ERROR did not show me solutions on Google search.
   Please...
Comment 5 Tod Creasey CLA 2007-07-30 07:47:08 EDT
So there is no folder for the project you were trying to create at all then? And if not is there anything in the .log file of your workspace?
Comment 6 Bhagirath Patel CLA 2007-07-30 10:21:57 EDT
(In reply to comment #5)
> So there is no folder for the project you were trying to create at all then?
> And if not is there anything in the .log file of your workspace?
   

    Tod, I will attache the .project file in my next reply...But Yes I have my project folder named MyProject that I have tried to create in different locations such as workspace of our eclipse, and other places like c:, d: but at the time of importing Project into eclipse gives me error that we have been discussing.
    GWT creates whole project structur using two Commands from DOS at the destination Project Directory with all necessary files like .project, .classpath and others.
    Will attache .project file so till then you may want not to reply.
Stay tuned then...
Thanks....

Comment 7 Bhagirath Patel CLA 2007-07-30 20:05:18 EDT
Tod, this is Bhagirath
   Following is the .project file simply copied and pasted

----------------.project file------------------
<?xml version="1.0" encoding="utf-8" ?>
<projectDescription>
   <name>d:\Proj1</name>
   <comment>d:\Proj1</comment>
   <projects/>
   <buildSpec>
       <buildCommand>
           <name>org.eclipse.jdt.core.javabuilder</name>
           <arguments/>
       </buildCommand>
   </buildSpec>
   <natures>
       <nature>org.eclipse.jdt.core.javanature</nature>
   </natures>
</projectDescription>

-----------------.classpath file---------------------
<?xml version="1.0" encoding="utf-8" ?>
<classpath>
   <classpathentry kind="src" path="src"/>
   <classpathentry kind="src" path="test"/>
   <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
   <classpathentry kind="lib" path="C:/gwt-windows-1.4.10/gwt-user.jar"/>
   <classpathentry kind="var" path="JUNIT_HOME/junit.jar"/>
   <classpathentry kind="output" path="bin"/>
</classpath>
------------------------------------------------------

Let me know what is the problem with this files and Eclipse giving me error, I am just curious to know and to solve this...

Thanks & Regards...

-Bhagirath
Comment 8 Tod Creasey CLA 2007-07-31 08:16:58 EDT
So this is the .project file of the failed project correct?

The problem is that you named it d:\Proj1 - the segement it is complaining about is the seperator in the name. Had you named it proj1 you would have been fine

We should give a better message but there is nothing more for us to do here.
Comment 9 Bhagirath Patel CLA 2007-07-31 10:17:23 EDT
(In reply to comment #8)
> So this is the .project file of the failed project correct?
> The problem is that you named it d:\Proj1 - the segement it is complaining
> about is the seperator in the name. Had you named it proj1 you would have been
> fine
> We should give a better message but there is nothing more for us to do here.

Tod, Bhagirath here...
   Meaning, in .project file, I have to put Proj1 instead of d:\Proj1 ? that is what you mean ?
   Because, I want to create a project to particular destination (in this case d:\Proj1)...
   So removing seperator remains as <name>Proj1</name> right ?
Comment 10 Tod Creasey CLA 2007-07-31 12:33:10 EDT
Right. The name should have no seperators, but the path should. They cannot be the same thing.
Comment 11 Bhagirath Patel CLA 2007-07-31 12:45:54 EDT
(In reply to comment #10)
> Right. The name should have no seperators, but the path should. They cannot be
> the same thing.

Thanks Tod for your constant flow of info. It would help me and I will try it today.
   Meanwhile, this implies GWT commands those create Project Directory Structure should not created this way...What do you think ?? Because .project has <name>d:\Proj1</name> by default and eclipse gave me hard time...
   Anyways, I really appreciate your help...
   thanks, thank you very much Tod..

-Bhagirath

Comment 12 Prakash Rangaraj CLA 2009-07-16 00:31:07 EDT
Eclipse doesn't create projects names like "D:\proj". Its the external tools that create projects like that. You should be raising bugs against those products.