Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: SHLOMIF [...] cpan.org
Cc:
AdminCc:

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



Subject: On Ubuntu 14.04 Trusty LTS, latest perltidy often emits empty output
On Ubuntu 14.04 Trusty LTS, latest perltidy often emits empty output, for example for this https://github.com/shlomif/black-hole-solitaire/blob/master/black-hole-solitaire/c-solver/cmake/pod2man-wrapper.pl, thus yielding failures such as https://travis-ci.org/shlomif/black-hole-solitaire/builds/343368415 . Please look into fixing it.
On Mon Feb 19 09:18:04 2018, SHLOMIF wrote: Show quoted text
> On Ubuntu 14.04 Trusty LTS, latest perltidy often emits empty output, > for example for this https://github.com/shlomif/black-hole- > solitaire/blob/master/black-hole-solitaire/c-solver/cmake/pod2man- > wrapper.pl, thus yielding failures such as https://travis- > ci.org/shlomif/black-hole-solitaire/builds/343368415 . Please look > into fixing it.
I've now tested it on perl-5.18.4 installed using perlbrew on mageia v7 x86-64 and it happens there as well. I've tested some other inputs and seems like a leading empty line trips it. Here is a sample session inside perlbrew (/usr/bin/perlbrew uses the system 5.26.1 perl and works fine): shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/pod2man-wrapper.pl #!/usr/bin/perl print "foo"; shlomif[black-hole]:$c_src$ gvim `which perltidy` shlomif[black-hole]:$c_src$ /usr/bin/perltidy < cmake/pod2man-wrapper.pl #!/usr/bin/perl print "foo"; shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/pod2man-wrapper.pl print "foo"; shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/pod2man-wrapper.pl print "foo"; shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl print "foo"; shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/pod2man-wrapper.pl print "foo"; shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/pod2man-wrapper.pl print "foo"; shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl print "foo"; shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/pod2man-wrapper.pl print "foo";
Subject: Re: [rt.cpan.org #124469] On Ubuntu 14.04 Trusty LTS, latest perltidy often emits empty output
Date: Mon, 19 Feb 2018 11:01:36 -0800
To: bug-Perl-Tidy [...] rt.cpan.org
From: Steven Hancock <s7078hancock [...] gmail.com>
Sorry to hear this. I downloaded this file but haven't been able to reproduce the problem. I am using Ubuntu 16.04 and perl v5.22.1. I need more info. Do you have a .perltidyrc? Maybe the problem is related to one of the flags in it. Also, by latest version do you mean perltidy version 20180219? Steve On Mon, Feb 19, 2018 at 9:59 AM, Shlomi Fish via RT < bug-Perl-Tidy@rt.cpan.org> wrote: Show quoted text
> Queue: Perl-Tidy > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=124469 > > > On Mon Feb 19 09:18:04 2018, SHLOMIF wrote:
> > On Ubuntu 14.04 Trusty LTS, latest perltidy often emits empty output, > > for example for this https://github.com/shlomif/black-hole- > > solitaire/blob/master/black-hole-solitaire/c-solver/cmake/pod2man- > > wrapper.pl, thus yielding failures such as https://travis- > > ci.org/shlomif/black-hole-solitaire/builds/343368415 . Please look > > into fixing it.
> > I've now tested it on perl-5.18.4 installed using perlbrew on mageia v7 > x86-64 and it happens there as well. I've tested some other inputs and > seems like a leading empty line trips it. Here is a sample session inside > perlbrew (/usr/bin/perlbrew uses the system 5.26.1 perl and works fine): > > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > pod2man-wrapper.pl > #!/usr/bin/perl > > print "foo"; > shlomif[black-hole]:$c_src$ gvim `which perltidy` > shlomif[black-hole]:$c_src$ /usr/bin/perltidy < cmake/pod2man-wrapper.pl > #!/usr/bin/perl > > print "foo"; > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > pod2man-wrapper.pl > > print "foo"; > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > pod2man-wrapper.pl > print "foo"; > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > print "foo"; > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > pod2man-wrapper.pl > > print "foo"; > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > pod2man-wrapper.pl > > print "foo"; > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > print "foo"; > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > pod2man-wrapper.pl > print "foo"; > >
my reply email did not arrive so i am copying it here: On Mon, 19 Feb 2018 14:01:50 -0500 "Steven Hancock via RT" <bug-Perl-Tidy@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=124469 > > > Sorry to hear this. I downloaded this file but haven't been able to > reproduce the problem. > I am using Ubuntu 16.04 and perl v5.22.1. >
it happens (only?) with perl-5.18.x, which is what ubuntu 14.04 (not 16.04) has. Show quoted text
> I need more info. > Do you have a .perltidyrc? Maybe the problem is related to one of the flags > in it.
yes, it reads shlomif[golf]:$base/add5$ cat ~/.perltidyrc -ci=4 -bl -cti=0 shlomif[golf]:$base/add5$ Show quoted text
> > Also, by latest version do you mean perltidy version 20180219?
yes. Show quoted text
> Steve
On Mon Feb 19 14:01:50 2018, s7078hancock@gmail.com wrote: Show quoted text
> Sorry to hear this. I downloaded this file but haven't been able to > reproduce the problem.
On Mon, 19 Feb 2018 14:01:50 -0500 "Steven Hancock via RT" <bug-Perl-Tidy@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=124469 > > > Sorry to hear this. I downloaded this file but haven't been able to > reproduce the problem. > I am using Ubuntu 16.04 and perl v5.22.1. >
it happens (only?) with perl-5.18.x, which is what ubuntu 14.04 (not 16.04) has. Show quoted text
> I need more info. > Do you have a .perltidyrc? Maybe the problem is related to one of the flags > in it.
yes, it reads shlomif[golf]:$base/add5$ cat ~/.perltidyrc -ci=4 -bl -cti=0 shlomif[golf]:$base/add5$ Show quoted text
> > Also, by latest version do you mean perltidy version 20180219?
yes. Show quoted text
> Steve
Show quoted text
> I am using Ubuntu 16.04 and perl v5.22.1. > > I need more info. > Do you have a .perltidyrc? Maybe the problem is related to one of the flags > in it. > > Also, by latest version do you mean perltidy version 20180219? > Steve > > > > On Mon, Feb 19, 2018 at 9:59 AM, Shlomi Fish via RT < > bug-Perl-Tidy@rt.cpan.org> wrote: >
> > Queue: Perl-Tidy > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=124469 > > > > > On Mon Feb 19 09:18:04 2018, SHLOMIF wrote:
> > > On Ubuntu 14.04 Trusty LTS, latest perltidy often emits empty output, > > > for example for this https://github.com/shlomif/black-hole- > > > solitaire/blob/master/black-hole-solitaire/c-solver/cmake/pod2man- > > > wrapper.pl, thus yielding failures such as https://travis- > > > ci.org/shlomif/black-hole-solitaire/builds/343368415 . Please look > > > into fixing it.
> > > > I've now tested it on perl-5.18.4 installed using perlbrew on mageia v7 > > x86-64 and it happens there as well. I've tested some other inputs and > > seems like a leading empty line trips it. Here is a sample session inside > > perlbrew (/usr/bin/perlbrew uses the system 5.26.1 perl and works fine): > > > > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > > pod2man-wrapper.pl > > #!/usr/bin/perl > > > > print "foo"; > > shlomif[black-hole]:$c_src$ gvim `which perltidy` > > shlomif[black-hole]:$c_src$ /usr/bin/perltidy < cmake/pod2man-wrapper.pl > > #!/usr/bin/perl > > > > print "foo"; > > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > > pod2man-wrapper.pl > > > > print "foo"; > > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > > pod2man-wrapper.pl > > print "foo"; > > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > > print "foo"; > > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > > pod2man-wrapper.pl > > > > print "foo"; > > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > > pod2man-wrapper.pl > > > > print "foo"; > > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > > print "foo"; > > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > > pod2man-wrapper.pl > > print "foo"; > > > >
Subject: Re: [rt.cpan.org #124469] On Ubuntu 14.04 Trusty LTS, latest perltidy often emits empty output
Date: Mon, 19 Feb 2018 15:55:24 -0800
To: bug-Perl-Tidy [...] rt.cpan.org
From: Steven Hancock <s7078hancock [...] gmail.com>
Shlomi, I didn't see anything suspicious in your perltidyrc. This looks like it might be some kind of buffering problem. I wonder if you can repeat it when output goes to a file rather than STDOUT. Steve On Mon, Feb 19, 2018 at 9:59 AM, Shlomi Fish via RT < bug-Perl-Tidy@rt.cpan.org> wrote: Show quoted text
> Queue: Perl-Tidy > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=124469 > > > On Mon Feb 19 09:18:04 2018, SHLOMIF wrote:
> > On Ubuntu 14.04 Trusty LTS, latest perltidy often emits empty output, > > for example for this https://github.com/shlomif/black-hole- > > solitaire/blob/master/black-hole-solitaire/c-solver/cmake/pod2man- > > wrapper.pl, thus yielding failures such as https://travis- > > ci.org/shlomif/black-hole-solitaire/builds/343368415 . Please look > > into fixing it.
> > I've now tested it on perl-5.18.4 installed using perlbrew on mageia v7 > x86-64 and it happens there as well. I've tested some other inputs and > seems like a leading empty line trips it. Here is a sample session inside > perlbrew (/usr/bin/perlbrew uses the system 5.26.1 perl and works fine): > > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > pod2man-wrapper.pl > #!/usr/bin/perl > > print "foo"; > shlomif[black-hole]:$c_src$ gvim `which perltidy` > shlomif[black-hole]:$c_src$ /usr/bin/perltidy < cmake/pod2man-wrapper.pl > #!/usr/bin/perl > > print "foo"; > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > pod2man-wrapper.pl > > print "foo"; > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > pod2man-wrapper.pl > print "foo"; > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > print "foo"; > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > pod2man-wrapper.pl > > print "foo"; > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > pod2man-wrapper.pl > > print "foo"; > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > print "foo"; > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > pod2man-wrapper.pl > print "foo"; > >
Subject: [rt.cpan.org #124469]
Date: Tue, 20 Feb 2018 10:20:02 +0100
To: bug-Perl-Tidy [...] rt.cpan.org
From: David Emanuel da Costa Santiago <dasantiago [...] suse.cz>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! I'm also facing this issue on opensuse leap 42.3. I also have perl 5.18 and perltidy v20180219 I've tried with and without .perltidyrc with no changes in the behaviour Using the -o switch didn't produced any output: dasantiago@magicbox /t/tidy_test> perltidy WebAPI.pm -o output.tdy dasantiago@magicbox /t/tidy_test> cat output.tdy  dasantiago@magicbox /t/tidy_test> -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJai+hMAAoJEM+1kXb3oIrK1BIQAKKz/Bn+waT9dzKT1b7G4+6O xcjVwOt4LRTU0dO1lCCrXGFlWe37mcc38Z+SYzLQg67oq4HQmavOkAwH+ej3U2dn HJS5ixLSZdLS3+E3JvZJccxoknUvMRRLHDOhxGybJ/TdsB8ryGWIi4LpyqjsAvWG /xNS+jZudTZ9a970WrJ0nfGgJkKQ091reaT2xvJjVSKeMPKsiDRkzw8c1ktrKtH5 fj5X9TANPU+YP8lVQf+LVBAOLEkN2Yqfm8hvHcK/jOrXZDPhJiR2ACc9TyLbtQhk kfjB6nbkjhwjC9dBAMBYQniqq5z7DYZ6TNaYaYp26LvuTmqdKLOUQvo69MIuR1cX /07x4tEpDLEhYY14w0w/nL6VnuHodGrusuWkob6wzi+cgjkPF7E25XyLXSc8KzEA WhE+vbvwLopBALrmUG7PnlPYkvSsCBrKYwq48uEM0Baru7v9Wn1Llr/iDoh0D78B 792orPfppBn79E6U7PQHeqJKdN/+f6PxAP8pkzOVga4z/ccGsa96CUpgeUgWzdbh q1ZzxhZO79GsplJ+gaC2mQ0PG4UY54RlTqpYL2dBgx9HqVgee7YYcaumCcA08FQd rX1UCigqaQn6Xw8TofWlUyz/tNf4fmmlz3V/RY3aK7pHfbyXheeQuwLho8XJnlO3 j5Mv8utTRYrDyYdG2PUv =rlme -----END PGP SIGNATURE-----
Subject: Re: [rt.cpan.org #124469]
Date: Tue, 20 Feb 2018 03:21:58 -0800
To: bug-Perl-Tidy [...] rt.cpan.org
From: Steven Hancock <s7078hancock [...] gmail.com>
I found the problem and will upload a revised version in a few hours. An index was going out of bounds, usually on the first hash-bang line. Thanks for the help. Steve On Tue, Feb 20, 2018 at 1:33 AM, David Emanuel da Costa Santiago via RT < bug-Perl-Tidy@rt.cpan.org> wrote: Show quoted text
> Queue: Perl-Tidy > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=124469 > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > Hi! > > I'm also facing this issue on opensuse leap 42.3. > > I also have perl 5.18 and perltidy v20180219 > > > I've tried with and without .perltidyrc with no changes in the > behaviour > > > Using the -o switch didn't produced any output: > > dasantiago@magicbox /t/tidy_test> perltidy WebAPI.pm -o output.tdy > dasantiago@magicbox /t/tidy_test> cat output.tdy > dasantiago@magicbox /t/tidy_test> > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2 > > iQIcBAEBAgAGBQJai+hMAAoJEM+1kXb3oIrK1BIQAKKz/Bn+waT9dzKT1b7G4+6O > xcjVwOt4LRTU0dO1lCCrXGFlWe37mcc38Z+SYzLQg67oq4HQmavOkAwH+ej3U2dn > HJS5ixLSZdLS3+E3JvZJccxoknUvMRRLHDOhxGybJ/TdsB8ryGWIi4LpyqjsAvWG > /xNS+jZudTZ9a970WrJ0nfGgJkKQ091reaT2xvJjVSKeMPKsiDRkzw8c1ktrKtH5 > fj5X9TANPU+YP8lVQf+LVBAOLEkN2Yqfm8hvHcK/jOrXZDPhJiR2ACc9TyLbtQhk > kfjB6nbkjhwjC9dBAMBYQniqq5z7DYZ6TNaYaYp26LvuTmqdKLOUQvo69MIuR1cX > /07x4tEpDLEhYY14w0w/nL6VnuHodGrusuWkob6wzi+cgjkPF7E25XyLXSc8KzEA > WhE+vbvwLopBALrmUG7PnlPYkvSsCBrKYwq48uEM0Baru7v9Wn1Llr/iDoh0D78B > 792orPfppBn79E6U7PQHeqJKdN/+f6PxAP8pkzOVga4z/ccGsa96CUpgeUgWzdbh > q1ZzxhZO79GsplJ+gaC2mQ0PG4UY54RlTqpYL2dBgx9HqVgee7YYcaumCcA08FQd > rX1UCigqaQn6Xw8TofWlUyz/tNf4fmmlz3V/RY3aK7pHfbyXheeQuwLho8XJnlO3 > j5Mv8utTRYrDyYdG2PUv > =rlme > -----END PGP SIGNATURE----- > >
On Tue Feb 20 06:22:56 2018, s7078hancock@gmail.com wrote: Show quoted text
> I found the problem and will upload a revised version in a few hours. > An index was going out of bounds, usually on the first hash-bang line. > Thanks for the help. > Steve >
Thanks! I hope you added a test and you may wish to look into testing with multiple perls using https://en.wikipedia.org/wiki/Travis_CI or similar. Show quoted text
> On Tue, Feb 20, 2018 at 1:33 AM, David Emanuel da Costa Santiago via RT < > bug-Perl-Tidy@rt.cpan.org> wrote: >
> > Queue: Perl-Tidy > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=124469 > > > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > > > Hi! > > > > I'm also facing this issue on opensuse leap 42.3. > > > > I also have perl 5.18 and perltidy v20180219 > > > > > > I've tried with and without .perltidyrc with no changes in the > > behaviour > > > > > > Using the -o switch didn't produced any output: > > > > dasantiago@magicbox /t/tidy_test> perltidy WebAPI.pm -o output.tdy > > dasantiago@magicbox /t/tidy_test> cat output.tdy > > dasantiago@magicbox /t/tidy_test> > > > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v2 > > > > iQIcBAEBAgAGBQJai+hMAAoJEM+1kXb3oIrK1BIQAKKz/Bn+waT9dzKT1b7G4+6O > > xcjVwOt4LRTU0dO1lCCrXGFlWe37mcc38Z+SYzLQg67oq4HQmavOkAwH+ej3U2dn > > HJS5ixLSZdLS3+E3JvZJccxoknUvMRRLHDOhxGybJ/TdsB8ryGWIi4LpyqjsAvWG > > /xNS+jZudTZ9a970WrJ0nfGgJkKQ091reaT2xvJjVSKeMPKsiDRkzw8c1ktrKtH5 > > fj5X9TANPU+YP8lVQf+LVBAOLEkN2Yqfm8hvHcK/jOrXZDPhJiR2ACc9TyLbtQhk > > kfjB6nbkjhwjC9dBAMBYQniqq5z7DYZ6TNaYaYp26LvuTmqdKLOUQvo69MIuR1cX > > /07x4tEpDLEhYY14w0w/nL6VnuHodGrusuWkob6wzi+cgjkPF7E25XyLXSc8KzEA > > WhE+vbvwLopBALrmUG7PnlPYkvSsCBrKYwq48uEM0Baru7v9Wn1Llr/iDoh0D78B > > 792orPfppBn79E6U7PQHeqJKdN/+f6PxAP8pkzOVga4z/ccGsa96CUpgeUgWzdbh > > q1ZzxhZO79GsplJ+gaC2mQ0PG4UY54RlTqpYL2dBgx9HqVgee7YYcaumCcA08FQd > > rX1UCigqaQn6Xw8TofWlUyz/tNf4fmmlz3V/RY3aK7pHfbyXheeQuwLho8XJnlO3 > > j5Mv8utTRYrDyYdG2PUv > > =rlme > > -----END PGP SIGNATURE----- > > > >
This is fixed in version 20180220. Sorry this happened. It was a simple index error that didn't show up in testing on my version of Perl. Steve
Subject: Re: [rt.cpan.org #124469] On Ubuntu 14.04 Trusty LTS, latest perltidy often emits empty output
Date: Tue, 20 Feb 2018 00:43:52 +0200
To: bug-Perl-Tidy [...] rt.cpan.org
From: Shlomi Fish <shlomif [...] shlomifish.org>
On Mon, 19 Feb 2018 14:01:50 -0500 "Steven Hancock via RT" <bug-Perl-Tidy@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=124469 > > > Sorry to hear this. I downloaded this file but haven't been able to > reproduce the problem. > I am using Ubuntu 16.04 and perl v5.22.1. >
it happens (only?) with perl-5.18.x, which is what ubuntu 14.04 (not 16.04) has. Show quoted text
> I need more info. > Do you have a .perltidyrc? Maybe the problem is related to one of the flags > in it.
yes, it reads shlomif[golf]:$base/add5$ cat ~/.perltidyrc -ci=4 -bl -cti=0 shlomif[golf]:$base/add5$ Show quoted text
> > Also, by latest version do you mean perltidy version 20180219?
yes. Show quoted text
> Steve
Subject: Re: [rt.cpan.org #124469] On Ubuntu 14.04 Trusty LTS, latest perltidy often emits empty output
Date: Mon, 19 Feb 2018 21:23:58 +0200
To: bug-Perl-Tidy [...] rt.cpan.org
From: Shlomi Fish <shlomif [...] shlomifish.org>
On Mon, 19 Feb 2018 14:01:50 -0500 "Steven Hancock via RT" <bug-Perl-Tidy@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=124469 > > > Sorry to hear this. I downloaded this file but haven't been able to > reproduce the problem. > I am using Ubuntu 16.04 and perl v5.22.1. >
it happens (only?) with perl-5.18.x, which is what ubuntu 14.04 (not 16.04) has. Show quoted text
> I need more info. > Do you have a .perltidyrc? Maybe the problem is related to one of the flags > in it.
yes, it reads shlomif[golf]:$base/add5$ cat ~/.perltidyrc -ci=4 -bl -cti=0 shlomif[golf]:$base/add5$ Show quoted text
> > Also, by latest version do you mean perltidy version 20180219?
yes. Show quoted text
> Steve > > > > On Mon, Feb 19, 2018 at 9:59 AM, Shlomi Fish via RT < > bug-Perl-Tidy@rt.cpan.org> wrote: >
> > Queue: Perl-Tidy > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=124469 > > > > > On Mon Feb 19 09:18:04 2018, SHLOMIF wrote:
> > > On Ubuntu 14.04 Trusty LTS, latest perltidy often emits empty output, > > > for example for this https://github.com/shlomif/black-hole- > > > solitaire/blob/master/black-hole-solitaire/c-solver/cmake/pod2man- > > > wrapper.pl, thus yielding failures such as https://travis- > > > ci.org/shlomif/black-hole-solitaire/builds/343368415 . Please look > > > into fixing it.
> > > > I've now tested it on perl-5.18.4 installed using perlbrew on mageia v7 > > x86-64 and it happens there as well. I've tested some other inputs and > > seems like a leading empty line trips it. Here is a sample session inside > > perlbrew (/usr/bin/perlbrew uses the system 5.26.1 perl and works fine): > > > > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > > pod2man-wrapper.pl > > #!/usr/bin/perl > > > > print "foo"; > > shlomif[black-hole]:$c_src$ gvim `which perltidy` > > shlomif[black-hole]:$c_src$ /usr/bin/perltidy < cmake/pod2man-wrapper.pl > > #!/usr/bin/perl > > > > print "foo"; > > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > > pod2man-wrapper.pl > > > > print "foo"; > > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > > pod2man-wrapper.pl > > print "foo"; > > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > > print "foo"; > > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > > pod2man-wrapper.pl > > > > print "foo"; > > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > > pod2man-wrapper.pl > > > > print "foo"; > > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > > shlomif[black-hole]:$c_src$ perltidy -f < cmake/pod2man-wrapper.pl > > print "foo"; > > shlomif[black-hole]:$c_src$ /usr/bin/perltidy -f < cmake/ > > pod2man-wrapper.pl > > print "foo"; > > > >
-- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Escape from GNU Autohell - http://www.shlomifish.org/open-source/anti/autohell/ To err is human; to apologise — divine. Please reply to list if it's a mailing list post - http://shlom.in/reply .