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.
[nb_dev](20020624), [jdk1.4.0](fcs) Sometimes submenu in Explorer contains only item "Empty". This behaviour cuase failures of too many GUI tests and it's annoying for user bacause (s)he must cancel submenu and expand it again.
It is caused by FolderChildren not returning the full content even when using getNodes(true). I'll investigate it.
In addition, sometimes only partial sub menu appears and user has to move mouse away and move mouse back to view all sub menu items.
I have been asked for rising priority - P2.
[#200206280100; jdk1.4.0 b92] I have the test-case how to 100% reproduce it in my Win2K: 1.Start IDE 2.Invoke popup menu in the most top node Filesystems 3.Mount has just item Empty When I try to invoke it second time then item Empty disappears and correct content is shown. After a couple of minutes I try it again (the same IDE session) and the problem repeats again. Similar is the situation for nodes of local filesystems - its popup menu contains "Empty" in "New" item.
It is not 100% on my machine but it is statistically testable directly asking df.getChildren().getNodes(true) twice in a row. It should return full result on the first call but sometimes it returns only the first item and the full array on the subsequent call. FolderChildren id DataSystems or Nodes? :-)
Fixed in openide/src/org/openide/loaders/FolderChildren.java, v1.53. Forces initialization in the case of the blocking lookup.
I have to reopen this issue - I am still able to reproduce it in new build (#200207040100, jdk1.4.0 - b92, Win2K) - see Steps to reproduce from my previous comment.
OK I had <5% reproducibility in on my machine but a FolderChildren test that have revealed the problem with >50% accuracy. I'll attach the test, compile it against the openide.jar and try to run it using internal execution. It should report working children with item count or bad children with 1st time result and 2nd time result.
Created attachment 6526 [details] A test for FolderChildren
Here is the output of the test: ..........Node Templates is OK with 15 children Node Folder is OK with 0 children Node Filesystems is OK with 3 children Node Version Control is OK with 2 children Node Services is OK with 13 children Node Autoupdate Types is OK with 1 children Node Browsers is OK with 1 children Node Compiler Types is OK with 6 children Node Debugger Types is OK with 4 children Node Execution Types is OK with 8 children Node External Javadoc process is OK with 1 children Node Indentation Engines is OK with 3 children Node Javadoc Search Types is OK with 2 children Node Javadoc Executors is OK with 1 children Node XML Node Views is OK with 3 children Node Script Types is OK with 3 children Node Search Types is OK with 4 children Node Doclets is OK with 1 children Node Java Classes is OK with 7 children Node Java GUI Forms is OK with 8 children Node AWT Forms is OK with 4 children Node Sample Forms is OK with 3 children Node Java Beans is OK with 5 children Node JSPs & Servlets is OK with 6 children Node Filters is OK with 2 children Node Listeners is OK with 4 children Node RMI is OK with 8 children Node Sockets is OK with 9 children Node XML is OK with 7 children Node JAR Archives is OK with 1 children Node Ant Build Scripts is OK with 4 children Node Scripting is OK with 3 children Node NetBeans Extensions is OK with 1 children Node Other is OK with 5 children
So from the test is seems to work. I've made a testing patch against openide that will log number of nodes returned to MenuView during menu building and also to log strange things in FolderChildren. I'll attach it. Please try it with the testing patch and post the results.
Created attachment 6527 [details] patch, place to lib/patches
Created attachment 6528 [details] ide.log
Comments to the previous ide.log: I just did these steps: 1. Filesystems->Mount (Empty) 2. again Filesystems->Mount (3 items) 3. LocalDir->New (Empty) 4. again LocalDir->New (13 items) 5. LocalDir->New->Folder 6. Filesystems->Mount (3 items) 7. LocalDir->New (13 items) 8. LocalDir->New->Folder
OK, FolderChildren did not delivered nodes. Nor one. The problem I was solving was 1 node (instead of all nodes) delivered, so this is a bit different. I wanted instruct you to enable FC and FL logging but when I was trying it, I got empty menu so now I'm probably able to reproduce it myself and I'll try to fix this problem too. Thanks for your cooperation.
Hopefully finally fixed. The rest of the problem was in NewTemplateAction itself. It uses node translation but it didn't translate the full-find request properly so it got partial result from the FolderChildren and used it as its own final result. I've also fixed VcsMountFromTemplateAction which is customized copy of the NewTemplateAction.
Created attachment 6529 [details] You can verify it with this patch (openide only, not vcsmount)
It's great - IDE works fine with this patch! I will try it and verify in continuous build as usual. Thanks for really important fix.
Verified in #200207080100.
Regression in build 20030213. It again showns "Empty" submenu in "Versioning -> Mount Version Control" main menu and "Mount" context menu on Filesystems node. It was probably caused by fix of issue 30986 (see also issue 31019).
Jirka: You are right, it's the same issue as issue 31019, so please let this one fixed, and verified, it's about another already fixed problem, thanks.
v
Resolved for 3.4.x or earlier, no new info since then -> closing.