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.
Created attachment 144290 [details] In this search i usually only get the .java file and 3 .properties files. Now i get 12 files as the compiled/copied files from /target is also returned. In new snapshots of nb, it seems that goto file besides returning the files it use to (those from src/..) it also refurn files from target folder. I get it that the files match the search pattern, but it is hardly useable. If this change is intentional, it would be extremely nice if it were an option to let "goto file" use the same ignore patterns that can be applied in the "find in project" dialog. Product Version: NetBeans IDE Dev (Build 201401200001) Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08 Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18 System: Windows 8 version 6.2 running on amd64; Cp1252; da_DK (nb
Having the same problem in MAVEN projects, NB Dev 201402190001. NB 7.4 does not show files from 'target' (what is the behavior expected by me). I expect only files from defined MAVEN 'source' folders should be in 'go to file'. See bug https://netbeans.org/bugzilla/show_bug.cgi?id=239769.
Unfortunately the change is intentional. The shareability filter needed to be removed due to performance reason. The Maven project ShareabilityQuery can block the Go To File for 70+ seconds which is not acceptable.
I'm not sure what this means ('shareability filter' and 'Maven project ShareabilityQuery'), but would it be possible to review NetBeans internal architecture so that sources scanner use actuall configuration of the MAVEN POMs to identify read sources but not just 'all files from root'? This way number of (actually not needed) files should be significantly reduced what will significantly ... - improve performance of NetBeans - less files to be scanned and analysized - improve user experience - I will not have to manually sort out autogenerated and non-source files from "Go To File" and "Search Result" windows
PS: this is what i already noted in https://netbeans.org/bugzilla/show_bug.cgi?id=239768
>but would it be possible to review NetBeans internal architecture so that sources >scanner use actuall configuration of the MAVEN POMs to identify read sources but >not just 'all files from root'? This is what the MavenVisibilityQuery and MavenShareabilityQuery does. They hide the folders which are not visible or excluded from versioning (build folders). Unfortunately when the Maven project caches are invalid it takes very long time to build them from the pom file. For example in the following snapshot https://netbeans.org/bugzilla/attachment.cgi?id=139998 more than 80s is spent in MavenShareabilityQuery building project model from POM file. 80s is much more then crawling the build folder. I can return the shareability filter but it makes the Go To File unusable for some users.
Thanks, status is clear now. I suppose there should be a 3rd way of architecture which makes both groups of users happy. Hopefully soon.
*** Bug 240828 has been marked as a duplicate of this bug. ***
I've decided to return the filters back (8.0). The slow maven project should be solved on maven loader side. If not solved by mvn we can at least allow partial results showing the files under sources before blocking in pom loading, but this is non trivial (next).
Fixed jet-main e074b4da81bf
Transplanted into NB 8.0 2fabb10eb5f9
Integrated into 'releases/release80', will be available in build *201403052200* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/2fabb10eb5f9 User: Tomas Zezula <tzezula@netbeans.org> Log: #240877:Goto file now show files from /target folder
Tomas - this is great news. Is the bug on the Maven project ShareabilityQuery reported somewhere? -Kind regards Anders
In (Build 201403060001) I still see files from 'target' in GoTo dialog.
You need to wait until the change is integrated to daily builds (main-silver). For now it's in jet-main builds and NB 8 (next release candidate).
*** Bug 242646 has been marked as a duplicate of this bug. ***
Integrated into 'main-silver', will be available in build *201403120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/e074b4da81bf User: Tomas Zezula <tzezula@netbeans.org> Log: #240877:Goto file now show files from /target folder
*** Bug 242726 has been marked as a duplicate of this bug. ***
verified in 8.0
*** Bug 191119 has been marked as a duplicate of this bug. ***