Skip Menu |

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

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

People
Owner: perltidy [...] users.sourceforge.net
Requestors: perltidy [...] users.sourceforge.net
Cc:
AdminCc:

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



Subject: Error with combination -scbb -csc in versions 20200110, 20200619, and 20200822
From: perltidy [...] users.sourceforge.net
A significant problem arises when the parameter combination -scbb -csc is used in versions 20200110-20200822. Please upgrade to version 20200907, which was released today. What happens is that when two consecutive lines with isolated closing braces had new side comments generated by the -csc parameter, a separating newline was missing. The resulting script will not then run, but worse, if it is reformatted with the same parameters then closing side comments could be overwritten and data lost. This problem was found during automated random testing. The parameter -scbb is rarely used, which is probably why this has not been reported. This issue has also been reported at github #37.
I will close this issue now. Version 20201001 has been released today.