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.
Product Version = NetBeans IDE 7.2 (Build 201207171143) Operating System = Linux version 3.2.0-27-generic running on amd64 Java; VM; Vendor = 1.6.0_30 Runtime = Java HotSpot(TM) 64-Bit Server VM 20.5-b03 When I search for "Find usages" with "Open projects" scope, IDE does not find anything, but when I select "Custom scope" with all projects selected then IDE find all usages. I don't know if it influences to use custom Ant Script. This bug is inherited from older IDE versions.
Created attachment 122468 [details] IDE log
Please, could you describe your project structure? Are you searching in NetBeans sources? What projects are open? Thank you for reporting.
I work with a project is divided in several free form web subprojects, each has its own ant script. Some subprojects have dependencies with others subproject in its ant script: <path id="subproject3.dependencies"> <path path="../../webmodules/subproject1.jar" /> <path path="../../webmodules/subproject2.jar" /> </path> The type search is "Find Usages" of an Enum type, example: enum Dia { LUNES, MARTES, MIERCOLES, JUEVES, VIERNES, SABADO, DOMINGO; } Find Usages: JUEVES. With "Open projects" option selected, the IDE don't find anything, but with "Custom Scope" selected IDE find all occurrences. I did a test with several projects with dependencies among themselves, but this time with the IDE ant script. I did the same search and the IDE found all ocurrences successfully. Thanks :)
The option "Open projects" takes the classpath from the project to limit the number of files to search, there is no need to search unrelated projects. With the custom scope you, the user, tell which parts need to be searched and are related. It is not possible to get this working reliably in free form projects.