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 147336 - [65cat] [core] Refactoring "Find Usages" only does a text search instead of a context search.
Summary: [65cat] [core] Refactoring "Find Usages" only does a text search instead of a...
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-16 07:44 UTC by esmithbss
Modified: 2011-01-28 20:12 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description esmithbss 2008-09-16 07:44:22 UTC
[ JDK VERSION : 1.6.0_07 ]

When I did a "Find Usages" search within my Ruby on Rails application
for a controller method (in this case myController.index) , I
expected to receive a listing of where the method for the controller
was referenced in link_to(), url(), render(), redirect(), etc...
calls.

Instead, what I received was a search result on the word "index".

This type of "Find Usages" search result is absolutely useless.

I should only receive a list of locations within the code which
reference the specific method in the specific controller,  not a list
of all 5000+ places in my code and vendor plugins where they use the
word index.
Comment 1 Erno Mononen 2009-05-21 13:55:10 UTC
Agreed, unfortunately far from trivial to implement due to Ruby's dynamic nature. Perhaps once our type inference is 
good enough we can utilize it for more sophisticated refactorings.