id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
653	Lexically Rename Variable doesn't work when clicking on declaration of variable	waxhead	patrickas	"In the example code, taken straight from tsee's blog about refarctoring in padre:

 # http://use.perl.org/~tsee/journal/39121
 
 sub _derive_atan2 {
        my ( $tree, $var, $cloned, $d_sub ) = @_;
        # d/df atan(y/x) = x^2/(x^2+y^2) * (d/df y/x)
        my ($op1, $op2) = @{$tree->{operands}};	
        my $inner = $d_sub->( $op1->new()/$op2->new(), $var, 0 );
        # templates
        my $two = Math::Symbolic::Constant->new(2);
        my $op = Math::Symbolic::Operator->new('+', $two, $two);

        my $result = $op->new('*',
            $op->new('/',
                $op->new('^', $op2->new(), $two->new()),
                $op->new(
                    '+', $op->new('^', $op2->new(), $two->new()),
                    $op->new('^', $op1->new(), $two->new())
                )
            ),
            $inner
        );
        return $result;
}

To see the problem, on the line:

my ($op1, $op2) = @{$tree->{operands}};	

click on either $op1 or $op2 and try to Lexically Rename them.

You get an error:

No declaration could be found for the specified (lexical?) variable

You can get this to work by selecting any other occurance of the variable name in the code block.

But this isn't what you'd expect.
"	defect	closed	major		editor	0.50	fixed		
