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

Owner: perltidy [...]
Requestors: perltidy [...]

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 [...]
Download (untitled) / with headers
text/plain 692b
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.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to