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

Bug 86171

Summary: Cannot add a project nature manually
Product: [Eclipse Project] Platform Reporter: Vijay Bhadriraju <vbhadrir>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Vijay Bhadriraju CLA 2005-02-22 13:04:34 EST
I am trying to add a nature id to the list of natures in the .project file on a
Java Project and when I try to save it get an dialog popping up saying the file
on the file system has changed, do you want to save it, after clicking yes..I
tried to close and open the project. After closing the project I could never
open it. I get an error dialog with the following details.

Problems occurred opening the selected resources.
  Failed to read the project description file (.project) for Remote.  The file
has been changed on disk, and it now contains invalid information.  The project
will not function properly until the description file is restored to a valid state.
  Failed to read the project description file (.project) for Remote.  The file
has been changed on disk, and it now contains invalid information.  The project
will not function properly until the description file is restored to a valid state.
 
Is this s known problem ? Will this be fixed for 3.1
Comment 1 Rafael Chaves CLA 2005-02-22 14:23:16 EST
You probably introduced a syntax error. Please check if the XML syntax is ok. If
it is, please add it to this PR.
Comment 2 John Arthorne CLA 2005-02-25 10:39:01 EST
That error message indicates that you introduced invalid syntax into the
.project file.  If you believe your syntax is correct, please attach a sample
and reopen this bug.  Here is an example of a .project file with a nature that I
manually added in a text editor:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>Fred</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
	</buildSpec>
	<natures>
		<nature>com.xyz.myNature</nature>
	</natures>
</projectDescription>
Comment 3 Vijay Bhadriraju CLA 2005-02-25 10:41:10 EST
I verified this and I realised the I had introduced a syntax error in the 
nature id.