Bug 326480 - Executables view can be confused when projects are deleted
Summary: Executables view can be confused when projects are deleted
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 7.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-29 01:17 EDT by Ken Ryall CLA
Modified: 2020-09-04 15:23 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 Ken Ryall CLA 2010-09-29 01:17:06 EDT
1. Import and build a project that produces an executable
2. View the project's executable in the Executables View
3. Delete the project (but not the contents). The executable will be removed from the Executables View.
4. Import the executable into the Executables View.
5. Open one of the source files, see the file not found error in the editor.

What's happening is that the source files for the executable are initially created as TranslationUnits. After the project is deleted and the executable imported again the elements in the view continue to be TranslationUnits, but now they don't point to anything (getPath() returns null).

These need to be converted to ExternalTranslationUnits when the project goes away.

If you close down Eclipse and start again then the Executables View is repopulated with ExternalTranslationUnits and everything works OK.

Reported Carbide 3.0 as Nokia bug 11520.