Community
Participate
Working Groups
Build Identifier: Version: 3.6.0, Build id: I20100429-1549 Sometime when I change my project’s options its “Binaries” folder disappears from the “C/C++ View”. Reproducible: Always Steps to Reproduce: One semi consistent way to reproduce it - In the project view select a project and context. - In the Properties dialog navigate to C/C++ Build Behaviour tab and uncheck the option “Build (Incremental build). Now when I close the dialog the Binaries folder of my project has disappeared. If I close and open the project it will reappear, or if I change a project option again it might reappear too.
If I use sometihng like this make the binary folder appears again: ICProject cproject = CoreModel.getDefault().getCModel().getCProject(project); CModelManager.getDefault().removeBinaryRunner(cproject); CModelManager.getDefault().getBinaryRunner(cproject).start(); cproject.getBinaryContainer().getBinaries();
Which exact version of CDT does this relate to? Is this 6.0 as bugzilla says?
It happends in head.
I too see this. Reproduced using Kepler SR2 C/C++ Development Tools 8.3.0.201402142303 Eclipse Platform 4.3.2.v20140221-1852 I haven't been able to characterise exactly what causes it to happen, but when it does its really annoying. I seem to have seen this behaviour come and go throughout my career using CDT (since 2006). Is a fix on its way for this? I've also updated the following case because it may be a duplicate: Bug 387075 - Binary folder intermittently does not appear after a CDT project Build cheers john
New Gerrit change created: https://git.eclipse.org/r/45560
I think I have a fix for this. There is a race condition when creating the element info (cache) for the binary container element. The element info might be created twice by different threads and the later one will replace the other. If the binaries have already been collected for the first element info, the second one might stay empty (depends on subtle timing). The fix is to make the creation of the element info an atomic operation.
Gerrit change https://git.eclipse.org/r/45560 was merged to [master]. Commit: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=c0ce0a2b8cfc581d5f39c05009dfba5ab5905059
Fixed in master.
Hi Anton, I look forward to trying your fix. Do you know if it addresses the following, possibly similar bugs? Bug 349564 - The 'Binaries' node does not always disappear when project is cleaned Bug 387075 - Binary folder intermittently does not appear after a CDT project Build
(In reply to John Moule from comment #9) > Hi Anton, > > I look forward to trying your fix. Do you know if it addresses the > following, possibly similar bugs? > > Bug 349564 - The 'Binaries' node does not always disappear when project is > cleaned I am not entirely sure about this one, but there is a good chance it is also fixed. > Bug 387075 - Binary folder intermittently does not appear after a CDT > project Build This indeed looks like a duplicate, so it should be fixed as well.