This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
"nbproject/configurations.xml" is not updated if files (or logical folders) in the project change (added/moved/removed). This is obviously bad for version control, as the project state in NetBeans differs from the one tracked by the VCS. The current workaround is to close the project, which seems to force the project to be written to the disk but slows down development a lot. Steps to Reproduce: 1. Create a "C/C++ Application" project. 2. Create a "C++ Class". Actual Results: "nbproject/configurations.xml" does not contain the new class. Expected behavior: The project is written to disk when modified. Build Date & Platform: NetBeans IDE 7.3 (Build 201302132200) on Linux version 3.2.0-40-generic running on amd64 NetBeans IDE Build 201304292301 on Linux version 3.2.0-40-generic running on amd64
When new file/files are added the project configuration.xml should be saved on disk
fixed in http://hg.netbeans.org/cnd-main/rev/e7dbfc9198fd Actions covered: New, Add Existing Item Add Existing Items From Folder Remove From Project Delete Rename For all actions listed above we will invoke save for MakeConfigurationDescriptor. It would be better if we introduce batch update for MakeConfigurationDescriptor and invoke save for all project changes
Integrated into 'main-golden', will be available in build *201306262301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/e7dbfc9198fd User: Maria Tishkova <mromashova@netbeans.org> Log: fixed bz#229274 - C/C++ project is not saved when adding or removing files Actions covered: New, Add Existing Item Add Existing Items From Folder Remove From Project Delete Rename For all actions listed above we will invoke save for MakeConfigurationDescriptor. It would be better if we introduce batch update for MakeConfigurationDescriptor and invoke save for all project changes
Configuration is saved in unpredictable state. (See Bug 235743 - A deleted file appears in Projects tab) Problem in race: - saving thread in MakeConfigurationDescriptor->save() - modification thread in NodeActionFactory->ViewItemNode->destroy() and rename()
(In reply to Alexander Simon from comment #4) > Configuration is saved in unpredictable state. > (See Bug 235743 - A deleted file appears in Projects tab) > Problem in race: > - saving thread in MakeConfigurationDescriptor->save() > - modification thread in NodeActionFactory->ViewItemNode->destroy() and > rename() fixed in change set: 5ae5ad126daf
reviewed, fix is save and correct
Integrated into 'releases/release74', will be available in build *201309252201* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/bbe6d98fa7bf User: Alexander Simon <alexvsimon@netbeans.org> Log: additional fix for Bug #229274 C/C++ project is not saved when adding or removing files (transplanted from 5ae5ad126daf99da5b102ddf9d2a1f3c533ce58f)