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.
1) Start IDE with some set of already opened projects 2) select some project node - pop-up menu - Find 3) search for "a" expression -> no matching nodes were found Workarround: unfold Packages node and underlying "Source Packages" node.
I just reproduced it. However, I doubt it is caused by a bug in the Utilities module. I am evaluating it more...
I found the immediate cause if this bug - it is that both the Source Packages node and the Source Packages node claim to have no subnodes. I suspect it is caused by that class PackageViewChildren creates its children lazily. Class PackageViewChildren is in module java/project - reassigning to that Issuezilla component.
Maybe you were failing to call getNodes(true) rather than just getNodes()?
Sure the nodes are created asynchronously. If you don't call getNodes( true ) you won't get them. Seems to me that the UI performance requirements and the implementation of find are somehow incompatible.
You are right - I used getNodes() instead of getNodes(true). This bug is in class SubnodesSearchInfo in module OpenideX. Change of the method getNodes() to getNodes(true) should have no performance impact on the nodes mentioned in the initial report - these nodes use a subclass of SubnodesSearchInfo which does not ask for subnodes until the Find action is invoked.
Fixed in the trunk. Modified file: openidex/src/org/openidex/search/SubnodesSearchInfo.java (1.2) Diff: http://www.netbeans.org/source/browse/openidex/src/org/openidex/search/SubnodesSearchInfo.java.diff?r1=1.1&r2=1.2&f=u
This bug should be fixed in NetBeans 4.0. If the bug remains unpatched, the user may be returned wrong results from the search feature - in most cases, they will get an empty result (no occurences found). After I fixed the bug in the trunk, I performed a functional test manually - there are no automatic tests covering this bug. The patch is very simple and low-risk. See the diff.
The proposed patch is OK.
Works for me in 20041109-1048. Thanks!
Fixed in branch 'release40', too. Modified file: openidex/src/org/openidex/search/SubnodesSearchInfo.java (1.1.10.1)