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 241978

Summary: Duplicate folders show in Project Window
Product: platform Reporter: MackSix
Component: Data SystemsAssignee: Jaroslav Havlin <jhavlin>
Status: NEW ---    
Severity: normal CC: jhavlin, jtulach, MackSix
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Log File
Screenshot
Thread Dump
Log File/Thread Dump from NetBeans IDE Dev (Build 201309110001)

Description MackSix 2014-02-17 06:56:19 UTC
Created attachment 145278 [details]
Log File

I have seen this before. Duplicate folders show in a Java project in the Projects Window.

I have included a screenshot and the log file. I don't know how to reproduce it.

Product Version: NetBeans IDE Dev (Build 201402150001)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b128
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 MackSix 2014-02-17 06:57:47 UTC
Created attachment 145279 [details]
Screenshot

Shows Duplicate Source Packages, Test Packages, Libraries, Test Libraries folders.
Comment 2 MackSix 2014-02-17 07:02:05 UTC
Created attachment 145281 [details]
Thread Dump
Comment 3 MackSix 2014-02-17 07:18:32 UTC
Created attachment 145283 [details]
Log File/Thread Dump from NetBeans IDE Dev (Build 201309110001)

This is log file and thread dump from NetBeans IDE Dev (Build 201309110001) that I created on Sept. 11th 2013 when I saw the duplicate folders on startup.
Comment 4 Jaroslav Havlin 2014-02-17 07:49:51 UTC
I guess these nodes (Source Packages, Test Packages, Libraries) are added by Project Support. Milos, can you please evaluate it? Thank you.
Comment 5 Milos Kleint 2014-02-17 08:03:26 UTC
you got a swing related stackoverflow in the log file. Can you reproduce the problem with 1.7?
Comment 6 MackSix 2014-02-17 13:54:45 UTC
(In reply to Milos Kleint from comment #5)
> you got a swing related stackoverflow in the log file. Can you reproduce the
> problem with 1.7?

Those were from this bug: Issue 241958. Yes it is reproducible using those steps and 1.7 u51. It is the same log file at an earlier time on the other issue. I can't reproduce the dup folders other than I have seen that happen from time to time.
Comment 7 Milos Kleint 2014-02-18 12:13:28 UTC
why do you have -Dorg.openide.loaders.FolderChildren.level=FINE set at startup? some other issue debugging?

Here's why I'm asking:

1. the various subnodes in the projects view are implemented by individual factories registered with an annotation. eg.

@NodeFactory.Registration(projectType="org-netbeans-modules-java-j2seproject", position=300)
public final class LibrariesNodeFactory implements NodeFactory

2. The parent node code takes all the registrations in defined order and calls then for subnodes. It's impossible to have one of these factories to wrongly return nodes as can be seen in the screenshot. (they are independent)

3. So it can be either something on the visual side of things (the actual visual component is out of sync somehow - platform/explorer?)

4. But more likely (and related to the question in the beginning) somehow when the registered layer content is converted to System file system, some of the entries are duplicated (this multiple instances of the factories are created)

reassigning back to datasystems.
Comment 8 MackSix 2014-02-18 15:25:21 UTC
(In reply to Milos Kleint from comment #7)
> why do you have -Dorg.openide.loaders.FolderChildren.level=FINE set at
> startup? some other issue debugging?
> 

To catch more info for bugs like Issue 202614. Sometimes form files show in a project when they should not show.
Comment 9 CypherEA 2015-05-25 05:34:47 UTC
Hmmm.... it's been a year - more - and I seem to be experiencing the same thing now.

Windows 8.1
Netbeans 8.0.2
LibGDX Android project (Gradle) showing duplicates of
Source Packages
And Dependencies