Skip Menu |

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

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

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

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



Broken: perltidy --delete-all-comments Sample: sub f { #1 #2 } Error: perltidy --delete-all-comments 11.pl line 0, irange 0-3 = 3, Krange 0-5 = 5; ============================================================================== While operating on input stream with name: '11.pl' A fault was detected at line 8096 of sub 'Perl::Tidy::Formatter::output_line_to_go' in file '/usr/local/lib/perl5/site_perl/Perl/Tidy/Formatter.pm' which was called from line 7549 of sub 'Perl::Tidy::Formatter::print_line_of_tokens' Message: 'Index error at line 0; i and K ranges differ' This is probably an error introduced by a recent programming change. ==============================================================================
Thanks!! I have written a fix. It got past testing, so I am adding a test. The parameter -dac is equivalent to the three parameters [--delete-block-comments --delete-side-comments --delete-pod], or [-dbc -dsc -dp]. The problem is with delete-side-comments; the other two are working correctly. I was planning a release about the end of March, but if this is causing a problem I can speed it up. Steve
This is fixed in v20200619.