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.
Build: NetBeans IDE Dev (Build 20130527-9d7c45d7e17b) VM: Java HotSpot(TM) Client VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11 OS: SunOS User Comments: gorrus: during find usages Stacktrace: java.lang.IllegalArgumentException: Filter filter-declarations not found. at org.netbeans.modules.refactoring.spi.impl.FiltersManagerImpl$FiltersComponent.isSelected(FiltersManagerImpl.java:194) at org.netbeans.modules.refactoring.spi.impl.FiltersManagerImpl.isSelected(FiltersManagerImpl.java:86) at org.netbeans.modules.cnd.refactoring.elements.CsmRefactoringElementImpl.filter(CsmRefactoringElementImpl.java:139) at org.netbeans.modules.refactoring.api.RefactoringElement.include(RefactoringElement.java:193) at org.netbeans.modules.refactoring.spi.impl.RefactoringPanel$4.run(RefactoringPanel.java:785) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
Created attachment 134962 [details] stacktrace
We require to change default selected state of the filters based on the find usages properties set by the user, currently addFilters is called before user specify anything, so we have select/deselect filters in enableFilters. Unfortunately there is no way to select/deselect existing filters in FiltersDescription, so we add Filters in enableFilters. It seems that this approach does not work. Please introduce a way to select/deselect existing filters in FiltersDescription.
*** Bug 230423 has been marked as a duplicate of this bug. ***
(In reply to comment #2) > We require to change default selected state of the filters based on the find > usages properties set by the user, currently addFilters is called before user > specify anything, so we have select/deselect filters in enableFilters. > Unfortunately there is no way to select/deselect existing filters in > FiltersDescription, so we add Filters in enableFilters. > It seems that this approach does not work. This approach will not work and I think is clearly documented in the method naming and javadoc. > Please introduce a way to select/deselect existing filters in > FiltersDescription. Looking at the code from CsmWhereUsedQueryPlugin.java, it is not clear to me why you want to solve it like this. If there is a clear scenario where this the only reasonable way to go, please file a separate rfe to add this functionality.
I can disable the functionality but can not do the fix without API change, see bug 230538
Created attachment 135346 [details] stacktrace doing "find usages..."
Created attachment 135347 [details] stacktrace find usages...
For the version below, "find usages..." is usless, which makes NB useless. Product Version: NetBeans IDE Dev (Build 201306032301) Java: 1.7.0_17; Java HotSpot(TM) Client VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02 System: Linux version 3.6.11-4.fc16.x86_64 running on i386; UTF-8; en_US (nb) User directory: /home/toddb/.netbeans/dev Cache directory: /home/toddb/.cache/netbeans/dev
Created attachment 135367 [details] stacktrace find usages
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=200957
Created attachment 135375 [details] stacktrace FU
Created attachment 135376 [details] stacktrace FU
Created attachment 135455 [details] stacktrace not possible find usages
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=200957
Created attachment 135458 [details] stacktrace FU
FindUsage is unusable in trunk
I will disable filters until bug 230538 is fixed
fixed in: http://hg.netbeans.org/cnd-main/rev/c812954e42c6 disabled filters for now
Integrated into 'main-golden', will be available in build *201306072301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/c812954e42c6 User: Egor Ushakov <gorrus@netbeans.org> Log: disabled find usages filtering, fixed #230337 - IllegalArgumentException: Filter filter-declarations not found.