Skip Menu |

This queue is for tickets about the Perl-Tidy CPAN distribution.

Report information
The Basics
Id: 107832
Status: resolved
Priority: 0/
Queue: Perl-Tidy

People
Owner: Nobody in particular
Requestors: rkellough [...] mdacorporation.com
Cc:
AdminCc:

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



Subject: Perltidy bug in v20150815: -lp flag not working in combination with -boc
Date: Fri, 16 Oct 2015 22:48:43 +0000
To: "bug-Perl-Tidy [...] rt.cpan.org" <bug-Perl-Tidy [...] rt.cpan.org>
From: Ray Kellough <rkellough [...] mdacorporation.com>
Hi perl tidy people! I think I found a bug in the latest version of perl tidy (20150815). I was previously using version 20140711. What I'm seeing: the -lp flag doesn't seem to be working for nested hashes if the -boc flag is also used. Example: Before (i.e. this kind of thing was considered to be "tidy" in 20140711): my %temp = ( supsup => 123, nested => { asdf => 456, yarg => 'yarp', }, ); After upgrading to 20150815 I get a new result: my %temp = ( supsup => 123, nested => { asdf => 456, yarg => 'yarp', }, ); It works fine if I don't have any nesting. I'm using perl v5.20.2, on windows 7. Thanks, Ray
Subject: Re: [rt.cpan.org #107832] Perltidy bug in v20150815: -lp flag not working in combination with -boc
Date: Fri, 16 Oct 2015 16:55:51 -0700
To: "bug-Perl-Tidy [...] rt.cpan.org" <bug-Perl-Tidy [...] rt.cpan.org>
From: Steven Hancock <perltidy [...] users.sourceforge.net>
Ray, Thanks for the report. This problem was introduced by a fix for bug #98902. The -boc flag puts such strong constraints on the formatter that it has to give up formatting in some nested structures. So this may be hard to fix, I'll see. Steve On Fri, Oct 16, 2015 at 3:48 PM, Ray Kellough via RT < bug-Perl-Tidy@rt.cpan.org> wrote: Show quoted text
> Fri Oct 16 18:48:55 2015: Request 107832 was acted upon. > Transaction: Ticket created by rkellough@mdacorporation.com > Queue: Perl-Tidy > Subject: Perltidy bug in v20150815: -lp flag not working in > combination with -boc > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: rkellough@mdacorporation.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=107832 > > > > Hi perl tidy people! > > I think I found a bug in the latest version of perl tidy (20150815). I was > previously using version 20140711. What I'm seeing: the -lp flag doesn't > seem to be working for nested hashes if the -boc flag is also used. > > Example: > > Before (i.e. this kind of thing was considered to be "tidy" in 20140711): > my %temp = ( supsup => 123, > nested => { asdf => 456, > yarg => 'yarp', > }, ); > After upgrading to 20150815 I get a new result: > my %temp = ( > supsup => 123, > nested => { asdf => 456, > yarg => 'yarp', > }, ); > > It works fine if I don't have any nesting. I'm using perl v5.20.2, on > windows 7. > > Thanks, > Ray > > >
This is fixed in version 20160301