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.
Step to reproduce: - open project with existing sources. - open nbproject/configurations.xml in editor. - make some modification in configurations.xml and save file. IDE ask (or not ask - it depends on current state of internal metadata representation) to reload metadata. Confirm reload. Observed misbehavior: - Code model has two native file item for each C/C++/Header file in the project. It can led to wrong code model. - Select file in project view is not working.
Proposed partial fix for two native file items: # This patch file was generated by NetBeans IDE # It uses platform neutral UTF-8 encoding and \n newlines. --- a/MakeConfigurationDescriptor.java +++ b/MakeConfigurationDescriptor.java @@ -257,6 +257,9 @@ } } } + for (Entry<String, Item> entry : projectItems.entrySet()) { + entry.getValue().onClose(); + } projectItems.clear(); synchronized (sourceRoots) { sourceRoots.clear();
used only safe fix for 8.1 990680e11a99 [release81] 64292c3a863b [release81]
Integrated into 'main-silver', will be available in build *201601180002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/097fc7254e0a User: Vladimir Voskresensky <vv159170@netbeans.org> Log: fixed #257576 - Externally modified project metadata breaks IDE behavior in several ways - this is safe fix to solve mentioned issue. But some problems remains, i.e. root folder sometimes doesn't update it's children on reload (transplanted from 990680e11a995fd7c32591c43b9d9932ed5d24d4)
Fixes of this bug: http://hg.netbeans.org/releases/rev/990680e11a99 http://hg.netbeans.org/releases/rev/64292c3a863b
Verified in NetBeans 8.1 patch1