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 194221 - Project source folders are not automatically refreshed in Projects tab
Summary: Project source folders are not automatically refreshed in Projects tab
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: Thomas Preisler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-11 13:51 UTC by xhanka00
Modified: 2011-02-22 17:47 UTC (History)
1 user (show)

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 xhanka00 2011-01-11 13:51:37 UTC
I'm using NetBeans with Clear Case versioning system. Unfortunately Clear Case works in such a way that it creates temporary directory structure on local filesystem. This directory structure is removed after Clear Case use (we can call it Clear Case session).
I have several directories in my NetBeans Project inside this temporary directory structure. If I start NetBeans when temporary directory structure is already created, no problem occurs. If I run NetBeans when temporary directory structure does not exist - of course, project directories inside non-existing directory structure are not present in Projects tab. 
The thing is that when I run NetBeans next time, with temporary directory structure created (containing all project folders) I expect that project folders would be refreshed and once again added into Project tab, but they are not.

Simple reproduction case - create C++ project with existing sources in directory test1. Add test2 folder with foo.c file as project folder. Quit NB. Rename test2 folder to test3 or remove it from filesystem. Start NB - test2 is naturally missing in project folders. Quit NB. Rename test3 back to test2, or recreate test2 directory once again. Run NB again - test2 (valid project directory) still does not appear in Project tab although it exists in filesystem.
Comment 1 Vladimir Voskresensky 2011-01-13 14:36:16 UTC
rising priority, because it breaks functionality for enterprise users
Comment 2 Thomas Preisler 2011-01-19 19:16:55 UTC
Yes, looks like refreshing is not correct/complete. When NB comes up it is supposed to validate all file in project and update tree to reflect changes on disk.
Comment 3 Thomas Preisler 2011-01-20 00:50:13 UTC
Found and fixed one problem. If a folder was deleted (or renamed), the folder with the original name was not correctly removed from the project files. It was a regression caused by some remote changes. Should be fixed now.


changeset:   186754:0971419897c3
user:        Thomas Preisler <thp@netbeans.org>
date:        Wed Jan 19 16:44:24 2011 -0800
summary:     #194221 - Project source folders are not automatically refreshed in Projects tab

changeset:   186755:2eed528032f5
tag:         tip
user:        Thomas Preisler <thp@netbeans.org>
date:        Wed Jan 19 16:45:40 2011 -0800
summary:     #194221 - Project source folders are not automatically refreshed in Projects tab
Comment 4 Quality Engineering 2011-01-22 06:12:48 UTC
Integrated into 'main-golden', will be available in build *201101220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/0971419897c3
User: Thomas Preisler <thp@netbeans.org>
Log: #194221 - Project source folders are not automatically refreshed in Projects tab
Comment 5 xhanka00 2011-02-10 09:53:22 UTC
Hi,
I tested the new development release where this bug should be fixed, but unfortunately, behavior is the same as before fix. Reopening...

Andrej
Comment 6 Alexander Pepin 2011-02-10 11:40:45 UTC
Please provide the build number you used for testing.
Comment 7 xhanka00 2011-02-10 14:07:38 UTC
I used latest development build "netbeans-dev-201102080000".
Comment 8 Thomas Preisler 2011-02-21 23:16:10 UTC
Sorry, I can't reproduce. Below are the steps I try. Please try and follow them and see if you can reproduce the bug. The bug could be caused by a slightly different series of steps so please try and follow my steps exactly. Also please try the most recent build. You are on Linux, right?

1) Create Project with existing Sources and choose the version that puts the created project inside the existing project. 
2) Close the IDE
3) In a terminal window create a folder called test and a file called test.cc in that folder.
4) Open IDE. Notice the folder test and file test.cc is present in the project
5) Open Project properties and click OK (this will save updated configuration)
6) Close IDE
7) Remove test directory from a terminal window
8) Open IDE and notice test is no longer in project view.
10) Open Project properties and click OK (this will save updated configuration)
11) Close IDE
12) In a terminal window re-create the folder test and a file called test.cc in that folder.
13) Open IDE. Notice the folder test and file test.cc are again present in the project view.

You can experiment with not doing step 5) and/or 10) but I see the same (correct) result.

QA: can you reproduce this bug?
Comment 9 Thomas Preisler 2011-02-22 17:47:58 UTC
waiting for reply....