Bug 536217 - Deleting a nested project does not remove indexer file
Summary: Deleting a nested project does not remove indexer file
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: 9.3.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-24 14:43 EDT by John Bartholomew CLA
Modified: 2020-09-04 15:20 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Bartholomew CLA 2018-06-24 14:43:46 EDT
I am using Eclipse 4.7.1 on a WIndows 7 64-bit machine.

If I create a set of nested projects, i.e.:
   project A (file system location: $workspace/A}
     project B (file system location: $workspace/A/B}

When I delete project A, it also removes project B - but the indexer PDOM file for project B remains behind in $workspace/.metadata/.plugins/org.eclipse.cdt.core.

[Note: If I first delete project B above, and then project A, there are no indexer PDOM files left behind and I do not see the problem noted below.]

With PDOM files left behind, this causes the following problem:
Once I recreate the same set of nested folders as above, within the same Eclipse session,  the indexer will run, but will open an error dialog with many "C/C++ indexer error" messages in it. 

Note that I cannot delete the left-behind indexer PDOM files noted above until I close the current Eclipse session; the indexer appears to be locking them. Once I restart Eclipse however, I can recreate the folder hierarchy noted above without a problem - new indexer files are created at this point and all is well.
Comment 1 Eclipse Genie CLA 2018-06-24 15:09:46 EDT
New Gerrit change created: https://git.eclipse.org/r/124945
Comment 2 Nathan Ridge CLA 2018-06-24 15:12:13 EDT
(In reply to Eclipse Genie from comment #1)
> New Gerrit change created: https://git.eclipse.org/r/124945

Please ignore that, that's a patch for a different bug.
Comment 3 Nathan Ridge CLA 2018-06-25 02:39:42 EDT
Bug 453676 is possibly related.