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 190519

Summary: Refactor, Find Usage fail inside proc or lambda
Product: ruby Reporter: djlewis <djlewis>
Component: RefactoringAssignee: issues@ruby <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: DEFECT Exception Reporter:

Description djlewis 2010-09-22 11:59:55 UTC
class Huh

  def initialize
    process_cmd = proc do |cmd, init, data|
      @current_folder = "lessgo"
    end
  end

  def hoh
    @curent_folder = "noway"
  end

end

Try to refactor/rename or find usages of @current_folder inside proc.  NB responds with the proc itself rather than the correct lines. Try to do likewise with the usage in hoh and it does not find the usage inside proc. Ditto with lambda instead of proc.