ingydotnet / yaml-pm

YAML Perl Module
http://search.cpan.org/dist/YAML/
20 stars 26 forks source link

YAML-1.26_001: "Error parsing output from CPAN::Reporter::PrereqCheck" on Strawberry Perl #210

Closed twata1 closed 5 years ago

twata1 commented 5 years ago

Hi,

I was at a loss which way I should report to YAML issues or CPAN-Reporter issues .

It seems to occur only in YAML-1.26_001, so I report it here.

Running Strawberry Perl 5.16.3 32 bit, I noticed the following message.

C:\home\picture>cpan TINITA/YAML-1.26_001.tar.gz

(snip)

All tests successful.
Files=54, Tests=541, 59 wallclock secs ( 0.61 usr +  0.38 sys =  0.98 CPU)
Result: PASS
(C:\Strawberry\c\bin\dmake.exe test exited with 0)
Error parsing output from CPAN::Reporter::PrereqCheck:
1..0CPAN::Reporter: Test result is 'pass', All tests successful.
CPAN::Reporter: preparing a CPAN Testers report for YAML-1.26_001
CPAN::Reporter: sending test report with 'pass' via Metabase
  TINITA/YAML-1.26_001.tar.gz
  C:\Strawberry\c\bin\dmake.exe test -- OK
Running make install

(snip)

Thank you,

perlpunk commented 5 years ago

Thanks. Do you have any more information on this? Or how I can reproduce it without sending an actual report? I can't really see the failure, the error message is not from YAML.pm

twata1 commented 5 years ago

Thank you for your reply.

Do you have any more information on this?

This CPAN Testers Report

That's about it.

Sorry for the lack of information . Although it may take time or I don't know if I can identify the cause, I will investigate the issue.

Thank you,

twata1 commented 5 years ago

It seems to me that it occurs when a line containing "Test::YAML" is passed to CPAN::Reporter::PrereqCheck. I'm attaching sample files. prereqchk.pl.txt list1.txt list2.txt

The execution result is as follows.

C:\home\picture>prereqchk.pl list1.txt
Can't determine section names at C:\home\picture\perl5\lib\perl5/CPAN/Reporter/PrereqCheck.pm line 0.
END failed--call queue aborted, <DATA> line 1.
Test::YAML 1 1.07
Encode 1 2.49
Test::Deep 1 1.128
ExtUtils::MakeMaker 1 7.34
Test::More 1 1.302140
1..0

C:\home\picture>prereqchk.pl list2.txt
Encode 1 2.49
Test::Deep 1 1.128
ExtUtils::MakeMaker 1 7.34
Test::More 1 1.302140

C:\home\picture>
twata1 commented 5 years ago

[Additional Information]

C:\home\picture>ack "Can't determine section names"
perl5\lib\perl5\Test\Base.pm
287:my $name_error = "Can't determine section names";

C:\home\picture>perl -MTest::Base -e "print $Test::Base::VERSION"
0.89
C:\home\picture>
perlpunk commented 5 years ago

Thanks! It seems this is related to a previous issue https://github.com/ingydotnet/test-yaml-pm/issues/3 in Test::Base. So my fix https://github.com/ingydotnet/test-base-pm/pull/21 wasn't sufficient.

perlpunk commented 5 years ago

I created https://github.com/ingydotnet/test-base-pm/issues/22. Since it has nothing to do with YAML.m itself I'm closing this.