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.
Summary: | Find Usages returns empty results during scan | ||
---|---|---|---|
Product: | java | Reporter: | Jan Becicka <jbecicka> |
Component: | Refactoring | Assignee: | Svata Dedic <sdedic> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | yardus |
Priority: | P2 | ||
Version: | 7.2 | ||
Hardware: | PC | ||
OS: | Mac OS X | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jan Becicka
2012-03-06 15:25:41 UTC
Need to find a condition when the search should block waiting on scan. If I had reverse dependencies for the root with the searched symbol, and NONE of those (source) depenents were scanned, find usages could block. I am surprised by the message you've pasted - I tried to search for String usages on a freshly created project, but all the time the result window appeared with the 'scanning' hint. Maybe a race condition ? Did you also hit 'scan on background' button ? Actually, I was able to get the IDE to a state when "No patterns found" was displayed even after the scanning finished. The culprit is somehwere between ClassPathInfo and ClassIndex - at the time the "No patterns found" is printed, the ClassIndex.sourceIndeces is empty, even when the Find Usages is invoked on e.g. MultiDataObject class. I reached the state by searching usages of j.l.s. immediately after the editor appeared. The 1st search succeeded, subsequent searches printed 'No patterns found' Cannot reproduce in recent builds (04/16 +). Could you provide some +- working reproduction scenario, if you are still able to hit the bug ? |