Subject: | perltidy leaves extraneous LOG file after run w/ mulitple input files. |
Date: | Tue, 25 Mar 2014 15:32:30 -0700 |
To: | bug-Perl-Tidy [...] rt.cpan.org |
From: | George Hartzell <hartzell.george [...] gene.com> |
Hi Tidy,
I'm running perltidy via tidyall and was finding unexpected perltidy.LOG
files.
It only occured when tidyall was called with multiple files.
I've found that specifying -nomem alleviates the problem.
Give e.g. two input files, TidyAll makes two separate calls to
Perl::Tidy::perltidy().
I believe that this issue is a bad interaction between the memoization
stuff happening around line 2115 in Perl/Tidy.pm and the code at
Perl/Tidy.pm:2520-2534, which forces logfile-gap to be set to a non-zero
value after the first pass and on the second and later passes causes the
logfile to be set.
I've been debugging by calling
tidyall file_a.pm file_b.pm
and setting breakpoints in process_command_line and around lines 2520.
I'm using Perl-Tidy-20130922 and Code-TidyAll-0.19 with perl-5.18.2.
Thanks,
g.