| Summary: | The Binaries folder in the C/C++ view disappears sometime | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Dobrin Alexiev <dalexiev> |
| Component: | cdt-core | Assignee: | Anton Leherbauer <aleherb+eclipse> |
| Status: | RESOLVED FIXED | QA Contact: | Doug Schaefer <cdtdoug> |
| Severity: | normal | ||
| Priority: | P3 | CC: | aleherb+eclipse, evil_bandit_betamax, yevshif |
| Version: | 7.0 | ||
| Target Milestone: | 8.7.0 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| See Also: |
https://git.eclipse.org/r/45560 https://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=c0ce0a2b8cfc581d5f39c05009dfba5ab5905059 |
||
| Whiteboard: | |||
|
Description
Dobrin Alexiev
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. |