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

Bug 16116

Summary: [resources] Cannot open closed projects without .project
Product: [Eclipse Project] Platform Reporter: Philipe Mulet <philippe_mulet>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Philipe Mulet CLA 2002-05-16 04:44:03 EDT
Build 20020515

Same behavior with 20020514. Had a self-hosted workspace. Exited Eclipse, went 
to file system and discarded all my project folder.

Restarted Eclipse with '-refresh' mode, and all the deleted projects now show 
as closed ones, even though they no longer exist on the file system.

Log contained following entries:
RegistryLoader: Parsed Registry: 1121ms [+1121ms]
Parse and resolve registry: 1231ms
!ENTRY org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE Problems occurred while restoring the workspace.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.apache.ant is 
missing.  This file contains important information about the project.
  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.apache.lucene is 
missing.  This file contains important information about the proje
ct.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.apache.xerces is 
missing.  This file contains important information about the proje
ct.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.ant.core is 
missing.  This file contains important information about the pr
oject.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.ant.ui is 
missing.  This file contains important information about the proj
ect.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.compare is 
missing.  This file contains important information about the pro
ject.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.core.boot is 
missing.  This file contains important information about the p
roject.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.core.resources 
is missing.  This file contains important information about
the project.  The project will not function properly until this file is 
restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for 
org.eclipse.core.resources.win32 is missing.  This file contains important 
information
about the project.  The project will not function properly until this file is 
restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.core.runtime 
is missing.  This file contains important information about th
e project.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.core.target is 
missing.  This file contains important information about the
 project.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.debug.core is 
missing.  This file contains important information about the
project.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.debug.ui is 
missing.  This file contains important information about the pr
oject.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.help is 
missing.  This file contains important information about the projec
t.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.help.ui is 
missing.  This file contains important information about the pro
ject.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.help.webapp is 
missing.  This file contains important information about the
 project.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.jdt is 
missing.  This file contains important information about the project
.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.jdt.debug is 
missing.  This file contains important information about the p
roject.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.jdt.debug.ui 
is missing.  This file contains important information about th
e project.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.jdt.doc.isv is 
missing.  This file contains important information about the
 project.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.jdt.doc.user 
is missing.  This file contains important information about th
e project.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.jdt.junit is 
missing.  This file contains important information about the p
roject.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.jdt.launching 
is missing.  This file contains important information about t
he project.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.jdt.ui is 
missing.  This file contains important information about the proj
ect.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.pde is 
missing.  This file contains important information about the project
.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.pde.build is 
missing.  This file contains important information about the p
roject.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.pde.core is 
missing.  This file contains important information about the pr
oject.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.pde.doc.user 
is missing.  This file contains important information about th
e project.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.pde.runtime is 
missing.  This file contains important information about the
 project.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.pde.ui is 
missing.  This file contains important information about the proj
ect.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.platform is 
missing.  This file contains important information about the pr
oject.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for 
org.eclipse.platform.doc.isv is missing.  This file contains important 
information abou
t the project.  The project will not function properly until this file is 
restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for 
org.eclipse.platform.doc.user is missing.  This file contains important 
information abo
ut the project.  The project will not function properly until this file is 
restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.platform.win32 
is missing.  This file contains important information about
the project.  The project will not function properly until this file is 
restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.sdk is 
missing.  This file contains important information about the project
.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.search is 
missing.  This file contains important information about the proj
ect.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.swt is 
missing.  This file contains important information about the project
.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.swt.win32 is 
missing.  This file contains important information about the p
roject.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.team.core is 
missing.  This file contains important information about the p
roject.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.team.cvs.core 
is missing.  This file contains important information about t
he project.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.team.cvs.ssh 
is missing.  This file contains important information about th
e project.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.team.cvs.ui is 
missing.  This file contains important information about the
 project.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.team.ui is 
missing.  This file contains important information about the pro
ject.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.tomcat is 
missing.  This file contains important information about the proj
ect.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.ui is 
missing.  This file contains important information about the project.
  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.ui.win32 is 
missing.  This file contains important information about the pr
oject.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.update.core is 
missing.  This file contains important information about the
 project.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for 
org.eclipse.update.core.win32 is missing.  This file contains important 
information abo
ut the project.  The project will not function properly until this file is 
restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.update.ui is 
missing.  This file contains important information about the p
roject.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for 
org.eclipse.update.ui.forms is missing.  This file contains important 
information about
 the project.  The project will not function properly until this file is 
restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for 
org.eclipse.update.ui.win32 is missing.  This file contains important 
information about
 the project.  The project will not function properly until this file is 
restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.eclipse.webdav is 
missing.  This file contains important information about the proj
ect.  The project will not function properly until this file is restored.
!SUBENTRY 1 org.eclipse.core.resources 4 567 5/16/02 10:42 AM
!MESSAGE The project description file (.project) for org.junit is missing.  
This file contains important information about the project.  The
 project will not function properly until this file is restored.
Comment 1 John Arthorne CLA 2002-05-16 10:04:18 EDT
This is expected behaviour.

We don't automatically reconcile added or deleted projects. If we did that we'd 
have to throw away all metadata for that missing project, which would be too 
drastic.  Maybe the user accidently moved their project elsewhere, or their 
project is on a drive that is not currently accessible.  The current behaviour 
gives the user an opportunity to "find" and bring back their project, and then 
re-open it in Eclipse.  If you really want to get rid of it, the user should be 
able to delete that closed project from eclipse.
Comment 2 DJ Houghton CLA 2002-05-16 10:23:09 EDT
As John mentions, we do not want to agressively delete projects since they 
could just be unavailable at the time (network drive down, etc) and that would 
result in loss of data for the user.

Closing.
Comment 3 Philipe Mulet CLA 2002-05-16 18:22:19 EDT
I understand this argument, but only for external projects...
Anyway, the current behavior makes some sense still.
Comment 4 Philipe Mulet CLA 2002-05-16 18:23:41 EDT
Actually, maybe a bonus marker on the project might be helpful ? Because when 
opening the offending project, you get into trouble still.
Comment 5 DJ Houghton CLA 2002-05-19 09:45:00 EDT
- manually delete a .project file on disk
- open Eclipse
- the corresponding Project is closed since the .project does not exist
- you are unable to open the project

Is this really what we want?

Note: if you have a closed 1.0 project it will open since it reads the .prj 
from the metadata area.
Comment 6 John Arthorne CLA 2002-05-27 18:08:55 EDT
This is the intended behaviour.  Allowing a user to open this project isn't 
doing them any favours, since it will be missing its natures and build 
spec, and there is no easy way to add these things back except by manually 
hacking the .project file.  This is documented in:

org.eclipse.core.resources/doc/project_description_file.html
Comment 7 Philipe Mulet CLA 2002-05-28 06:33:36 EDT
I agree, but then the error should suggest that the project resource is 
missing... not one of its contained file.

Anyway, checked again on 20020521 with following steps:

- create Java project: CCC
- expand it: it contains .project and .classpath
- switch to file system: delete folder CCC
- perform a refresh in the navigator view --> error (missing .project)
- observe that the project is NOT closed, and that if missing .project, it still
pretends having a .classpath file (lie).

I would have expected this project to get closed in a consistent way with 
restarting such a workspace.

Comment 8 John Arthorne CLA 2004-11-25 14:01:22 EST
Closing old bug. The current behaviour is fine.