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.
Dev build. I was surprised to find that when searching for some text string in a project, matches were included from the build dir. IMHO search should not show you matches in nonsharable files, or at least not without clicking some checkbox to search these files. Otherwise it is very easy to quickly jump to some text file in build/classes/ (e.g.) and spend some time editing it, before you realize that you should have been editing the source file. BTW if you used o.n.a.project.SourceGroup correctly - using the contains() method - this would work automatically.
Accepted.
*** Issue 47244 has been marked as a duplicate of this issue. ***
Fixed in the trunk, together with bug #46165 ("Search should skip files which are hidden acc. to VisibilityQuery"). Modified and added files (newly added files have revision 1.1): openidex/: manifest.mf (1.31) nbproject/project.xml (1.3) src/org/openidex/search/CompoundSearchInfo.java (1.1) src/org/openidex/search/CompoundSearchIterator.java (1.1) src/org/openidex/search/DataObjectSearchGroup.java (1.15) src/org/openidex/search/FileObjectFilter.java (1.1) src/org/openidex/search/SearchInfo.java (1.5) src/org/openidex/search/SearchInfoFactory.java (1.1) src/org/openidex/search/SharabilityFilter.java (1.1) src/org/openidex/search/SimpleSearchInfo.java (1.4) src/org/openidex/search/SimpleSearchIterator.java (1.1) src/org/openidex/search/SubnodesSearchInfo.java (1.1) src/org/openidex/search/Utils.java (1.7) src/org/openidex/search/VisibilityFilter.java (1.1) projects/projectui/: nbproject/project.xml (1.11) src/org/netbeans/modules/project/ui/ProjectsRootNode.java (1.26) utilities/: nbproject/project.xml (1.7) utilities/project/: nbproject/project.xml (1.4) src/org/netbeans/modules/search/project/ProjectsSearchAction.java (1.5) java/project/: nbproject/project.xml (1.15) src/org/netbeans/spi/java/project/support/ui/PackageRootNode.java (1.10) src/org/netbeans/spi/java/project/support/ui/PackageViewChildren.java (1.31)