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 250464

Summary: c duplicate folders
Product: cnd Reporter: igagis <igagis>
Component: ProjectAssignee: issues@cnd <issues>
Status: RESOLVED INCOMPLETE    
Severity: normal CC: apepin
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: proposed patch for removing double resources

Description igagis 2015-02-17 14:04:10 UTC
Steps:

1) checkout code using SVN:

     svn export -r 1096 http://morda.googlecode.com/svn/trunk morda

2) Run Netbeans and open the project from checked out code

3) Check project folder structure in Netbeans "Projects" tab.

4) Right click "morda" project and go to Properties->General.



Expected result:
    On step 3 there are folders:
        res
        src
        tests
        Important Files
    On step 4 there are 3 source folders added:
        res
        src
        test

Actual result:
    On step 3 there are duplicate entries, i.e. like this:
        res
        res
        src
        src
        tests
        tests
        Important Files
        Important Files
        Important Files
        Important Files
    On step 4, though, there are only 3 folders added, as in expected result.
Comment 1 Alexander Simon 2015-07-22 15:12:42 UTC
Hi igagis,Your example already has broken project tree.Please provide steps how to produce
Comment 2 Alexander Simon 2015-07-22 15:13:16 UTC
Hi igagis,

Your example already has broken project tree.
Please provide steps how to produce "broken" project tree.
I would recommend to fix project structure by editing nbproject/configuratons.xml

Alexander
Comment 3 Alexander Simon 2015-07-22 15:14:38 UTC
Created attachment 154797 [details]
proposed patch for removing double resources
Comment 4 igagis 2015-07-23 19:59:19 UTC
I have no idea how to reproduce that. All I have is already broken project. But, I re-recreated the project from scratch several times and after some time of working it was getting broken like this eventually. It is possible that it is somehow related to version control, maybe it merges it somehow in a wrong way, but maybe not. If I find out how to reproduce it I'll provide the info.