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.

Bug 250313 - IDE does not reflect external changes in project, even though it reloads it.
Summary: IDE does not reflect external changes in project, even though it reloads it.
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-09 17:26 UTC by tbrunhoff
Modified: 2016-06-18 03:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2015-02-09 17:26:59 UTC
This may be CND specific.  Somewhere along the road, some of my projects ended up with duplicate logical folders, such as the source root or "Important Files".

To fix this I ended up editing nbproject/configurations.xml to remove the duplicates. If I followed this procedure:
 - close the project
 - edit nbproject/configurations.xml; save
 - reopen the project in NB
Then NB recognized the change.  However, if I did not close the project, then NB would ask to reload, but clicking "yes" did not change the list of folders. If then I close and reopen the project, the list of folders becomes correct.

Do this:
 - edit nbproject/configurations.xml, duplicate Important Folders.  Mine looks like this:
    <logicalFolder name="ExternalFiles"
                   displayName="Important Files"
                   projectFiles="false"
                   kind="IMPORTANT_FILES_FOLDER">
      <itemPath>gxf.nb-Makefile.mk</itemPath>
      <itemPath>gxf.nb-Makefile.mk</itemPath>
    </logicalFolder>
 - open the project, note the presence of two Important Files folders.
 - edit nbproject/configurations.xml, remove the duplicate folder.
 - NB prompts to reload the project, but the number of folders does not change.
 - close and reopen the project and the number of folders is now correct.

Personally, I have seen issues like this for years with NB: the lack of synchronization with the state of NB projects in memory vs on disk. This one was easier than most to describe.
Comment 1 Alexander Simon 2016-06-17 13:10:50 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/116cab5a35d3
Comment 2 Quality Engineering 2016-06-18 03:12:05 UTC
Integrated into 'main-silver', will be available in build *201606180002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/116cab5a35d3
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #250313 IDE does not reflect external changes in project, even though it reloads it.