Community
Participate
Working Groups
How to reproduce: 1) Have a CDT/Qt project. 2) Use QMakeInfo API (to retrieve IQMakeProjectInfo for your project). 3) Add a listener on IQMakeProjectInfo. 4) Check if the listener is called when an active configuration is changed on the project. Actual behavior: Listener is not notified. Expected behavior: Listener is notified. Implementation notes: The root cause is in QMakeProjectInfoManager.start() method which registers CoreModel.getDefault().addCProjectDescriptionListener(PD_LISTENER, ICDescriptionDelta.ACTIVE_CFG); but it should be: CoreModel.getDefault().addCProjectDescriptionListener(PD_LISTENER, CProjectDescriptionEvent.LOADED | CProjectDescriptionEvent.APPLIED);
Fix available at: https://git.eclipse.org/r/25808
Thanks David. Did you want this applied to cdt 8.3 as well?
(In reply to Doug Schaefer from comment #2) > Thanks David. Did you want this applied to cdt 8.3 as well? It would be nice to integrate it to cdt_8_3 but it is not critical - the issue is rather Minor in our current use-cases in MNTCS. If we would integrate it into cdt_8_3, I would rather do it after 2.1 Beta release. I will cherry-pick the patch #25808 to cdt_8_3 after the 2.1 Beta release. Thanks.
Cherry-pick of the fix to cdt_8_3 branch is available at: https://git.eclipse.org/r/25808
(In reply to David Kaspar from comment #4) > Cherry-pick of the fix to cdt_8_3 branch is available at: > https://git.eclipse.org/r/25808 Correction: https://git.eclipse.org/r/25808 - master branch https://git.eclipse.org/r/26264 - cdt_8_3 branch