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

Bug 178135

Summary: Missing nature results in an error log entry instead of a problem marker
Product: [Eclipse Project] Platform Reporter: Konstantin Komissarchik <konstantin>
Component: ResourcesAssignee: John Arthorne <john.arthorne>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Szymon.Brandys, thatnitind
Version: 3.3   
Target Milestone: 3.4 M4   
Hardware: PC   
OS: Windows XP   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=489540
Whiteboard:

Description Konstantin Komissarchik CLA 2007-03-19 16:05:35 EDT
If a project refers to a nature id which is not found in the Eclipse install that the user is running, the platform logs an info message in the PDE error log that looks like this:

"Missing project nature extension for {x}."

The problem that we are running into is that this behavior gets in a way of  migration. BEA has been building on Eclipse for a while now and we have users whose projects need to migrated to BEA's new tooling. As part of the migration some natures are removed, others are renamed, etc. We run migration when we detect that a project has been imported. This works fine except for the fact that the user can later stumble on the above log entry (that no longer applies) and get confused.

This case might be better handled by using a problem marker rather than writting to a log. This way when the problem is resolved (like it would after our migration had a chance to run), the problem marker would disappear and leave nothing for the user to get confused by. 

If this approach makes sense, I would be willing to work on and contribute a patch for this. Let me know.
Comment 1 Konstantin Komissarchik CLA 2007-03-19 16:06:36 EDT
I also opened a related bug to track similar behavior as it applies to builders: https://bugs.eclipse.org/bugs/show_bug.cgi?id=178131
Comment 2 John Arthorne CLA 2007-12-02 23:56:48 EST
Similar to bug 178131. In this case the message is logged when someone removes an nature whose extension no longer exists in the install. As you noted, this is a normal occurrence in the case of a migration where the nature has been intentionally removed. It is no longer being logged.
Comment 3 Szymon Brandys CLA 2007-12-12 11:15:40 EST
Verified in I20071210-1800.