Community
Participate
Working Groups
PDOM files are not deleted after a project is deleted. Version: Kepler Service Release 2 Build id: 20140224-0627
What are PDOM files and how do you delete the project?
(In reply to Szymon Ptaszkiewicz from comment #1) > What are PDOM files and how do you delete the project? PDOM files are index files for a project. I right-click on the project (under project explorer) and select delete. Thanks
(In reply to Sumonto Ghosh from comment #2) > (In reply to Szymon Ptaszkiewicz from comment #1) > > What are PDOM files and how do you delete the project? > > PDOM files are index files for a project. And who or which plugin creates those index files? What are they needed for? I'm asking because the team owning the plugin which create PDOM files should investigate first and we need find the right team to do that.
(In reply to Szymon Ptaszkiewicz from comment #3) > (In reply to Sumonto Ghosh from comment #2) > > (In reply to Szymon Ptaszkiewicz from comment #1) > > > What are PDOM files and how do you delete the project? > > > > PDOM files are index files for a project. > > And who or which plugin creates those index files? What are they needed for? > I'm asking because the team owning the plugin which create PDOM files should > investigate first and we need find the right team to do that. Thanks Szymon for helping. PDOM files are centric to Eclipse and not specific to any plugin. Sergey Prigogin would know more about PDOM files. I have also referenced a diff bug in the same domain. Thanks. ---------------------------------------------------------------------- On Behalf Of Sergey Prigogin Sent: Sunday, November 30, 2014 12:01 PM Subject: Re: [Bug 154563] Bindings and File entries are not removed from the PDOM when corressponding source elements are deleted (implement B-tree delete) The PDOM file is supposed to be deleted when the project is deleted. If it is not deleted for you, please file a new bug since https://bugs.eclipse.org/bugs/show_bug.cgi?id=154563 is about a different issue. -sergey ----------------------------------------------------------------------
Thanks for the answer. It seems that PDOM files are known to the CDT guys. Moving to the CDT team for their comment because I don't see anything Platform specific here.
Please provide steps to reproduce the problem.
(In reply to Sergey Prigogin from comment #6) > Please provide steps to reproduce the problem. I don't have exact steps however the following would be fairly close. Create Multiple C/C++ projects. (Approx 4) With 2000+ files Close a few projects. Close Eclipse Add different projects Delete closed projects .metadata\.plugins\org.eclipse.cdt.core\*.pdom
(In reply to Sumonto Ghosh from comment #7) The simpler steps you can come up with, the more likely the problem is going to be fixed.
(In reply to Sergey Prigogin from comment #8) > (In reply to Sumonto Ghosh from comment #7) > > The simpler steps you can come up with, the more likely the problem is going > to be fixed. The easiest would be: 1. Create 2 projects with 2000+ files (you could try with lesser) 2. It is ok if these projects don't build, Project type is 'make file project with existing code' 3. Close one of them 4. Close Eclipse and re-open 5. Delete the project which was closed. 6. The pdom file is still there. thanks.
I don't think it matters how many files are in the project. I seem to recall this being an issue when deleting closed projects. Since they aren't open, we don't know that they're CDT projects so we don't know to delete the PDOM.
(In reply to Doug Schaefer from comment #10) > I don't think it matters how many files are in the project. I seem to recall > this being an issue when deleting closed projects. Since they aren't open, > we don't know that they're CDT projects so we don't know to delete the PDOM. This issue can be solved by moving PDOM files to the directory obtained by calling IProject.getWorkingLocation(String). This directory is deleted by the platform whenever the project is deleted.
Any updates? Thanks.
Not from me. Just waiting for someone to contribute a fix for this. Not sure users will appreciate all their projects reindexing when the get it though.
(In reply to Sergey Prigogin from comment #11) > This issue can be solved by moving PDOM files to the directory obtained by > calling IProject.getWorkingLocation(String). This directory is deleted by > the platform whenever the project is deleted. It looks like moving PDOM files to the working location directory of the project is far from trivial, since it requires synchronous closing of PDOM. Synchronous closing opens a whole can of worms in terms of performance and possible deadlocks.
Any updates, or do you need more logs from me? Thanks.
(In reply to Sergey Prigogin from comment #14) > (In reply to Sergey Prigogin from comment #11) > > This issue can be solved by moving PDOM files to the directory obtained by > > calling IProject.getWorkingLocation(String). This directory is deleted by > > the platform whenever the project is deleted. > > It looks like moving PDOM files to the working location directory of the > project is far from trivial, since it requires synchronous closing of PDOM. > Synchronous closing opens a whole can of worms in terms of performance and > possible deadlocks. Hi Sergey, It seems the thread is not moving, is there any way you could help? Thanks.
Neon CDT 9.2.1 Problem still present, after a few month working with same workspace, turns out 8G of diskspace was being wasted.