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.

Bug 200230

Summary: Find Usages on open projects no longer works
Product: java Reporter: Jesse Glick <jglick>
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: RESOLVED FIXED    
Severity: normal CC: tmysik
Priority: P2 Keywords: REGRESSION
Version: 7.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Jesse Glick 2011-07-19 12:15:01 UTC
After the introduction of custom refactoring scopes (20110719-7437ea481470 but also in 20110718-d662371caec6), FU no longer seems to work. For example, with maven & maven.j2ee open, I select TYPE_APPCLIENT in NbMavenProject.java and press Alt-F7. I leave the Scope set to Open Projects. ("..." shows both projects checked.) The only hit is within NbMavenProjectImpl. But a textual search shows three usages in maven.j2ee.
Comment 1 Jesse Glick 2011-07-19 12:51:59 UTC
By the way, log file shows things like

operation
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: class org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper ignored cancel for 89 ms.
SEVERE [org.netbeans.modules.java.source.save.ElementOverlay]: No element and no QualIdent
SEVERE [org.netbeans.modules.java.source.save.ElementOverlay]: No element and no QualIdent
SEVERE [org.netbeans.modules.java.source.save.ElementOverlay]: No element and no QualIdent
SEVERE [org.netbeans.modules.java.source.save.ElementOverlay]: No element and no QualIdent
SEVERE [org.netbeans.modules.java.source.save.ElementOverlay]: No element and no QualIdent
SEVERE [org.netbeans.modules.java.source.save.ElementOverlay]: No element and no QualIdent
SEVERE [org.netbeans.modules.java.source.save.ElementOverlay]: No element and no QualIdent
SEVERE [org.netbeans.modules.java.source.save.ElementOverlay]: No element and no QualIdent
Comment 2 Jesse Glick 2011-07-19 22:47:33 UTC
Setting a "custom scope" which happens to contain all open projects works. It is just the built-in "Open Projects" scope which in fact just searches in the current project.
Comment 3 Ralph Ruijs 2011-07-20 08:09:02 UTC
Changeset: 600dbb77c27d
Author:    Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Date:      2011-07-20 10:06
Message:   
Issue #200230 - Find Usages on open projects no longer works
Comment 4 Quality Engineering 2011-07-21 14:34:10 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/600dbb77c27d
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: Issue #200230 - Find Usages on open projects no longer works
Comment 5 Ralph Ruijs 2011-07-22 06:17:09 UTC
*** Bug 200304 has been marked as a duplicate of this bug. ***
Comment 6 Quality Engineering 2011-07-25 14:08:38 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/27f9b03428f4
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: After fix of bug #200230, some find usages implementations broke. ClasspathInfo needs to be in context until #199779 is used in all modules.