Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 16115 - [resources] Unable to delete project missing its .project file
Summary: [resources] Unable to delete project missing its .project file
Status: RESOLVED DUPLICATE of bug 16114
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-16 04:33 EDT by Philipe Mulet CLA
Modified: 2003-03-13 16:42 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2002-05-16 04:33:33 EDT
Build 20020515

Due to bug 16116, it is possible to get into a mode where the '.project' file 
is deleted from a project. If this happens, then the project is unusable, and 
cannot even be deleted without getting an error.

Refresh will usually also complains about this situation.
Comment 1 Philipe Mulet CLA 2002-05-16 04:34:59 EDT
Actually, related bug is rather bug 16114.
Comment 2 DJ Houghton CLA 2002-05-16 10:21:01 EDT
I am unable to reproduce this. Here are the steps that I am using. Is there 
something which you are doing differently? (I tried this both with a simple 
project and a java project)

- create project aaa
- delete .project from file-system
- refresh project in Navigator View 
- get dialog complaining about the .project file
- note .project file has been removed from the workspace
- use the context menu in the Navigator to delete the project
- works ok
Comment 3 Philipe Mulet CLA 2002-05-17 10:37:35 EDT
The .project file got wiped out by a problem during PDE import.
Comment 4 DJ Houghton CLA 2002-05-19 09:35:42 EDT
What was the error that you were getting when trying to delete?
What was the error during the refresh?
Do you have a .log file that you can attach?
Comment 5 Philipe Mulet CLA 2002-05-20 08:04:58 EDT
Nothing got written to the .log. The only original complaint was PDE saying 
something went wrong when deleting some fragment project (*.win32), and from 
thereon these projects could not be deleted in the resource perspective either.

A dialog would come up saying something like could not discard project...

The original scenario occured when trying to upgrade an existing self-hosting 
with PDE, without first deleting existing projects. I tried again with build 
20020519 and was able to reproduce the PDE problem, but this time I was able to 
still delete the offending projects in the resource view.
Comment 6 John Arthorne CLA 2002-05-21 12:03:46 EDT
With similar steps from bug 16114, I also got into a state where I couldn't 
delete the project.  However, the failure to delete the project was because 
something was holding an open file handle in a JAR file in the project.  My 
guess is that PDE or the import wizard left the file open when it failed to 
import the project.  At this point I couldn't even delete the project directory 
from windows explorer due to the open file handle.  After shutting down and 
restarting, I was able to delete the project.  I wonder if this is the same 
situation you were in.
Comment 7 John Arthorne CLA 2003-03-13 16:42:58 EST

*** This bug has been marked as a duplicate of 16114 ***