Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Invalid project description", importing from GIT repo problem

Tags:

After copying my GIT repo from a PC computer onto my MAC, i can't seem to import it to an eclipse. Import happens via eGit plugin directly from existing local git repository.

Same exact import works perfectly fine on existing Windows computer.

Please advise.

org.eclipse.core.internal.resources.ResourceException: Invalid project description.         at org.eclipse.core.internal.resources.Project.checkDescription(Project.java:162)         at org.eclipse.core.internal.resources.Project.assertCreateRequirements(Project.java:52)         at org.eclipse.core.internal.resources.Project.create(Project.java:274)         at org.eclipse.core.internal.resources.Project.create(Project.java:256)         at org.eclipse.egit.ui.internal.clone.ProjectUtils.createExistingProject(ProjectUtils.java:115)         at org.eclipse.egit.ui.internal.clone.ProjectUtils.access$0(ProjectUtils.java:92)         at org.eclipse.egit.ui.internal.clone.ProjectUtils$1.run(ProjectUtils.java:66)         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1957)         at org.eclipse.egit.ui.internal.clone.ProjectUtils.createProjects(ProjectUtils.java:84)         at org.eclipse.egit.ui.internal.clone.GitImportWizard.importProjects(GitImportWizard.java:160)         at org.eclipse.egit.ui.internal.clone.GitImportWizard.access$0(GitImportWizard.java:142)         at org.eclipse.egit.ui.internal.clone.GitImportWizard$1.run(GitImportWizard.java:83)         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)     Contains: OK     Contains: /Users/me/Repositories/ABC overlaps the location of another project: 'ABC' 
like image 778
James Raitsev Avatar asked May 21 '11 19:05

James Raitsev


People also ask

What is invalid project description eclipse?

"Invalid project description" error occurs during attempts to create a new project in a certain location. The message usually appears when the default workspace location is changed. Creating a project in the same directory twice will cause the error when the directory is other than the default workspace.

How do I import a project into Eclipse repository?

Open Eclipse and choose Import –> Projects from Git (with smart import) Choose the Clone URI option in the Git import wizard and click Next. Confirm the URI, Host and Repository path parameters and click Next. Choose the Git branches to clone from the remote repository and click Next.


2 Answers

"Contains: /Users/me/Repositories/ABC overlaps the location of another project: 'ABC'"

Looks like you already have a project in your workspace with the same name like the project you would like to import.

like image 156
dunni Avatar answered Oct 10 '22 05:10

dunni


Following is worked for me.

Copy/put your project outside of workspace [e.g : E:\yourproject ], then Go to
1. File-->Import-->General-->Existing Projects into Workspace
2. Browse your project
3. Select Checkbox "Copy projects into workspace" and press Finish.
It will make copy of project into workspace.

like image 23
Sunil Parmar Avatar answered Oct 10 '22 05:10

Sunil Parmar