Skip Menu |

This queue is for tickets about the App-EditorTools CPAN distribution.

Report information
The Basics
Id: 57384
Status: resolved
Priority: 0/
Queue: App-EditorTools

People
Owner: Nobody in particular
Requestors: ram.dobson [...] nih.gov
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: temporary variables declared after they're used
Date: Tue, 11 May 2010 14:37:20 -0400
To: bug-App-EditorTools [...] rt.cpan.org
From: Ram Dobson <ram.dobson [...] nih.gov>
I have 0.12 installed, and when i create a temporary variable in vim by highlighting the second( or third, fourth -- i imagine... ) it does the following $x = (1+2*3) ** 2; $y = (1+2*3) * 50; # <-- select (1+2*3) on this line i get this $x = $temp ** 2; my $temp = (1+2*3); $y = $temp * 50; which will not work. the temporary variable needs to be placed before the FIRST occurence, not the current one.
Subject: Re: [rt.cpan.org #57384] temporary variables declared after they're used
Date: Wed, 12 May 2010 21:19:17 -0400
To: bug-App-EditorTools <bug-App-EditorTools [...] rt.cpan.org>
From: Mark Grimes <mgrimes [...] cpan.org>
Thanks for the bug report. This is really a bug in PPI::EditorTools, though. I will take a look at that module when time permits. Do you know what version of PPI::ETs you are using? -Mark On Tue, May 11, 2010 at 2:37 PM, Ram Dobson via RT <bug-App-EditorTools@rt.cpan.org> wrote: Show quoted text
> Tue May 11 14:37:32 2010: Request 57384 was acted upon. > Transaction: Ticket created by ram.dobson@nih.gov >       Queue: App-EditorTools >     Subject: temporary variables declared after they're used >   Broken in: (no value) >    Severity: (no value) >       Owner: Nobody >  Requestors: ram.dobson@nih.gov >      Status: new >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=57384 > > > > I have 0.12 installed, and when i create a temporary variable in vim > by highlighting the second( or third, fourth -- i imagine... ) it does > the following > > $x = (1+2*3) ** 2; > $y = (1+2*3) * 50; # <-- select (1+2*3) on this line > > i get this > > $x = $temp ** 2; > my $temp = (1+2*3); > $y = $temp * 50; > > which will not work. > > the temporary variable needs to be placed before the FIRST occurence, > not the current one. > >
Subject: Re: [rt.cpan.org #57384] temporary variables declared after they're used
Date: Thu, 13 May 2010 12:33:26 -0400
To: "bug-App-EditorTools [...] rt.cpan.org" <bug-App-EditorTools [...] rt.cpan.org>
From: Ram Dobson <ram.dobson [...] nih.gov>
I have Version 0.12 of App::EditorTools installed. On 5/12/2010 9:19 PM, Mark Grimes via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=57384> > > Thanks for the bug report. This is really a bug in PPI::EditorTools, > though. I will take a look at that module when time permits. Do you > know what version of PPI::ETs you are using? > > -Mark > > > On Tue, May 11, 2010 at 2:37 PM, Ram Dobson via RT > <bug-App-EditorTools@rt.cpan.org> wrote:
>> Tue May 11 14:37:32 2010: Request 57384 was acted upon. >> Transaction: Ticket created by ram.dobson@nih.gov >> Queue: App-EditorTools >> Subject: temporary variables declared after they're used >> Broken in: (no value) >> Severity: (no value) >> Owner: Nobody >> Requestors: ram.dobson@nih.gov >> Status: new >> Ticket<URL: https://rt.cpan.org/Ticket/Display.html?id=57384> >> >> >> I have 0.12 installed, and when i create a temporary variable in vim >> by highlighting the second( or third, fourth -- i imagine... ) it does >> the following >> >> $x = (1+2*3) ** 2; >> $y = (1+2*3) * 50; #<-- select (1+2*3) on this line >> >> i get this >> >> $x = $temp ** 2; >> my $temp = (1+2*3); >> $y = $temp * 50; >> >> which will not work. >> >> the temporary variable needs to be placed before the FIRST occurence, >> not the current one. >> >>
>
This issues has been flagged in PPI::EditorTools where the bug lies. Thanks again for reporting it.