Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 49192 - Overlapping workspace/project
Summary: Overlapping workspace/project
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-19 13:09 EST by Genady Beryozkin CLA
Modified: 2006-06-28 17:02 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Genady Beryozkin CLA 2003-12-19 13:09:42 EST
I try to import an existing project into a workspace:
The workspace is in c:\eclipse\workspace and the project is in
c:\eclipse\workspace\rmi-generate

The wizard correctly identifies the directory (shows the project name),
but when I hit "Finish" it displays an error message 
"Invalid project description".

I've seen the other bug about it - but I see this behavior again and the project
location is valid (directly under the workspace directory)

I use Eclipse3.0M6 on WindowsXP.
Comment 1 Genady Beryozkin CLA 2003-12-19 13:10:40 EST
The other bug is bug #33684
Comment 2 Genady Beryozkin CLA 2003-12-19 13:11:43 EST
I see the other bug is assigned UI component, so I change it here as well.
Comment 3 DJ Houghton CLA 2003-12-19 13:15:20 EST
Changing owner to match component but will investigate to see what the story is.
The referenced bug was fixed in 2.1.1 so it shouldn't be a problem in the latest
builds.
Comment 4 DJ Houghton CLA 2003-12-19 13:17:40 EST
Is there any information in your .log file? (/workspace/.metadata/.log)

What directory is Eclipse installed in?
Comment 5 DJ Houghton CLA 2003-12-19 13:18:09 EST
Actually I'll move it back to Core until we can determine more information.
Comment 6 Genady Beryozkin CLA 2003-12-19 13:40:23 EST
I debugged it a little and here are the results - 
It seems to happend for project which directory name is different from the
project name in the .project file.

The failing line is line 128 in the Project class
workspace.validateProjectLocation(project, location)

Genady
Comment 7 Aaron Hamid CLA 2004-07-29 12:58:57 EDT
I am getting this too.

"Invalid project description"

c:/Development/Projects/CUWebAuth and c:/development/projects overlap.

This results in a bogus compile error:

"The project was not built since its build path is incomplete. Cannot find the
class file for java.lang.Object."

Most of the time Eclipse is just fine but randomly it will start doing this and
nothing will build.  I just specify my data directory with -data param as normal.

At no time have I ever nested projects or done anything like that.

Log stacktrace is:

Java Model Exception: Core Exception [code 77] Invalid project description.
	at
org.eclipse.jdt.internal.core.DeltaProcessingState$ProjectUpdateInfo.updateProjectReferencesIfNecessary(DeltaProcessingState.java:154)
	at
org.eclipse.jdt.internal.core.DeltaProcessingState.performClasspathResourceChange(DeltaProcessingState.java:223)
	at
org.eclipse.jdt.internal.core.SetClasspathOperation.updateProjectReferencesIfNecessary(SetClasspathOperation.java:771)
	at
org.eclipse.jdt.internal.core.SetClasspathOperation.executeOperation(SetClasspathOperation.java:246)
	at
org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:700)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
....

Caused by: org.eclipse.core.internal.resources.ResourceException: Invalid
project description.
	at org.eclipse.core.internal.resources.Project.checkDescription(Project.java:153)
	at org.eclipse.core.internal.resources.Project.setDescription(Project.java:887)
	at org.eclipse.core.internal.resources.Project.setDescription(Project.java:931)
	at
org.eclipse.jdt.internal.core.DeltaProcessingState$ProjectUpdateInfo.updateProjectReferencesIfNecessary(DeltaProcessingState.java:151)
Comment 8 DJ Houghton CLA 2004-08-04 11:30:26 EDT
Aaron, please file a new bug report as I believe your problem might be a
separate issue.

Genady, I think I see what is going on. Don't know why I didn't see this before,
sorry.

Eclipse manages all files underneath your workspace. If your workspace is at
c:/eclipse/workspace then you cannot create a project at
c:/eclipse/workspace/rmi-generate unless its created at the "default location".

Therefore, instead of doing an import, you need to create a new project and just
accept the default location. It will see that there is a project description
file already there and use that one and restore all your previous project data.

Let me know if this doesn't solve your problem.
Comment 9 Genady Beryozkin CLA 2004-08-04 17:01:52 EDT
My problem is that sometimes I wish to reset the workspace by erasing the 
metadata. 

Is creating a new project equivalent to importing it?

What happens if the project name is different from the directory name (I think 
it doesn't work well, but I didn't check recently).

Genady
Comment 10 DJ Houghton CLA 2004-08-04 17:27:59 EDT
If the project is in the default content area, then you have to create a new
project. (you aren't allowed to import it and you can't create a new one with a
new name and the old location)

If the project name is different than the directory name, that's ok if the
project content area is not in the default area. For example:
- workspace is in c:/eclipse/workspace
- create new project MyProject
- set project contents to be c:/temp/MyContents

Are there problems that are causing you to reset your workspace? In theory you
should be able to keep the same workspace across multiple builds. I upgrade to a
new Eclipse integration build every week and I've had the same workspace for
about 3 years now.
Comment 11 Karice McIntyre CLA 2006-06-28 16:09:26 EDT
Based on comment #6 and the original comment, this bug appears to be a duplicate of bug 143757.
Comment 12 Genady Beryozkin CLA 2006-06-28 17:02:49 EDT
(In reply to comment #11)
> Based on comment #6 and the original comment, this bug appears to be a
> duplicate of bug 143757.

Looks like it is the same bug. Nice to have it fixed.