Skip Menu |

This queue is for tickets about the Module-ScanDeps CPAN distribution.

Report information
The Basics
Id: 24160
Status: resolved
Priority: 0/
Queue: Module-ScanDeps

People
Owner: Nobody in particular
Requestors: adrianissott [...] hotmail.com
Cc:
AdminCc:

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



Subject: scandeps.(bat|pl) prints the legend to STDERR
Hi, When running scandeps.pl with the -V option on a perl file I get the output I've attached in output.txt. As you can see the "# Legend" line has been output in the middle of the first section of information rather than at the end of that first section of information as intended. Changing the line: warn "# Legend: [C]ore [X]ternal [S]ubmodule [?]NotOnCPAN\n" if $verbose; to be: print "# Legend: [C]ore [X]ternal [S]ubmodule [?]NotOnCPAN\n" if $verbose; fixes the problem. The reason this bug occurs is because all the other output goes into the STDOUT stream and there's no guarantee of how the STDOUT and STDERR streams will be merged on windows. Putting all the output in one stream will preserve the ordering. FYI, I'm using the following: * Module-ScanDeps [0.70] * perl, v5.8.4 built for MSWin32-x86-multi-thread, Binary build 810 provided by ActiveState Corp. * Windows XP, Version 2002, Service Pack 2 Regards, Adrian
Subject: output.txt

Message body is not shown because it is too large.

From: adrianissott [...] hotmail.com
I forgot to mention that I get the problem only while outputting directly to a file. E.g. by typing the following in a command prompt: scandeps -V some.pl > output.txt 2>&1 When I output directly to the command line I don't get the problem and everything looks fine. Regards, Adrian
This change will be in 0.71 which is on its way to CPAN. Thanks for pointing out the problem! As for your other tickets: I am very short on time these days. You are very welcome to step in and help. If you want to take action, just send me a short mail and you'll get a commit bit for the PAR+Module::ScanDeps SVN repository! Cheers, Steffen