rjbs / Pod-Weaver

recombine pod documents into awesomer pod documents
26 stars 28 forks source link

EnsurePod5 causes crash when =for is used #32

Open Mekk opened 9 years ago

Mekk commented 9 years ago

Summary

I added to my source file (which weaved properly earlier) the following directive:

=for test_synopsis 
    use feature 'say';  my ($oauth_interaction);

It caused crash during dzil build (full backtrace on the end of this report):

=begin cannot be parsed at /usr/local/share/perl/5.18.2/Pod/Elemental/Transformer/Pod5.pm line 74.

After I removed [-EnsurePod5] from weaver.ini, problem disappeared.

(If I remember correctly, I also some similar problems with =for :list earlier on, but I don't have example handy)

Module versions

I have fresh install:

(and perl 5.18.2, on Ubuntu 14.04.1)

How to reproduce

     hg clone https://bitbucket.org/Mekk/perl-oauthomatic
     cd perl-oauthomatic
     hg up -r 3723454ee849
     dzil build

(if you dont speak Mercurial, just download and unpack https://bitbucket.org/Mekk/perl-oauthomatic/get/3723454ee849.tar.gz )

Full backtrace

=begin cannot be parsed at /usr/local/share/perl/5.18.2/Pod/Elemental/Transformer/Pod5.pm line 74.
    Pod::Elemental::Transformer::Pod5::_region_para_parts('Pod::Elemental::Transformer::Pod5=HASH(0x78e3948)', 'Pod::Elemental::Element::Pod5::Region=HASH(0x7a0c8f0)') called at /usr/local/share/perl/5.18.2/Pod/Elemental/Transformer/Pod5.pm line 147
    Pod::Elemental::Transformer::Pod5::_collect_regions('Pod::Elemental::Transformer::Pod5=HASH(0x78e3948)', 'ARRAY(0x7ab4800)') called at /usr/local/share/perl/5.18.2/Pod/Elemental/Transformer/Pod5.pm line 281
    Pod::Elemental::Transformer::Pod5::transform_node('Pod::Elemental::Transformer::Pod5=HASH(0x78e3948)', 'Pod::Elemental::Document=HASH(0x796c2a8)') called at /usr/local/share/perl/5.18.2/Pod/Weaver/Plugin/EnsurePod5.pm line 43
    Pod::Weaver::Plugin::EnsurePod5::prepare_input('Pod::Weaver::Plugin::EnsurePod5=HASH(0x7a5bc48)', 'HASH(0x79715d0)') called at /usr/local/share/perl/5.18.2/Pod/Weaver.pm line 123
    Pod::Weaver::weave_document('Pod::Weaver=HASH(0x7973ec8)', 'HASH(0x79715d0)') called at /usr/local/share/perl/5.18.2/Dist/Zilla/Plugin/PodWeaver.pm line 148
    Dist::Zilla::Plugin::PodWeaver::munge_perl_string('Dist::Zilla::Plugin::PodWeaver=HASH(0x64329c0)', 'HASH(0x7958c00)', 'HASH(0x72a0ca8)') called at /usr/local/share/perl/5.18.2/Pod/Elemental/PerlMunger.pm line 133
    Class::MOP::Class:::around('CODE(0x60e43f8)', 'Dist::Zilla::Plugin::PodWeaver=HASH(0x64329c0)', 'package OAuthomatic::OAuthInteraction;\x{a}# ABSTRACT: handle bro...', 'HASH(0x72a0ca8)') called at /usr/lib/perl5/Class/MOP/Method/Wrapped.pm line 162
    Class::MOP::Method::Wrapped::__ANON__('Dist::Zilla::Plugin::PodWeaver=HASH(0x64329c0)', 'package OAuthomatic::OAuthInteraction;\x{a}# ABSTRACT: handle bro...', 'HASH(0x72a0ca8)') called at /usr/lib/perl5/Class/MOP/Method/Wrapped.pm line 91
    Dist::Zilla::Plugin::PodWeaver::munge_perl_string('Dist::Zilla::Plugin::PodWeaver=HASH(0x64329c0)', 'package OAuthomatic::OAuthInteraction;\x{a}# ABSTRACT: handle bro...', 'HASH(0x72a0ca8)') called at /usr/local/share/perl/5.18.2/Dist/Zilla/Plugin/PodWeaver.pm line 163
    Dist::Zilla::Plugin::PodWeaver::munge_pod('Dist::Zilla::Plugin::PodWeaver=HASH(0x64329c0)', 'Dist::Zilla::File::OnDisk=HASH(0x47ab9c0)') called at /usr/local/share/perl/5.18.2/Dist/Zilla/Plugin/PodWeaver.pm line 140
    Dist::Zilla::Plugin::PodWeaver::munge_file('Dist::Zilla::Plugin::PodWeaver=HASH(0x64329c0)', 'Dist::Zilla::File::OnDisk=HASH(0x47ab9c0)') called at /usr/local/share/perl/5.18.2/Dist/Zilla/Plugin/PodWeaver.pm line 132
    Dist::Zilla::Plugin::PodWeaver::munge_files('Dist::Zilla::Plugin::PodWeaver=HASH(0x64329c0)') called at /usr/local/share/perl/5.18.2/Dist/Zilla/Dist/Builder.pm line 323
    Dist::Zilla::Dist::Builder::build_in('Dist::Zilla::Dist::Builder=HASH(0x4404978)', undef) called at /usr/local/share/perl/5.18.2/Dist/Zilla/Dist/Builder.pm line 389
    Dist::Zilla::Dist::Builder::ensure_built_in('Dist::Zilla::Dist::Builder=HASH(0x4404978)') called at /usr/local/share/perl/5.18.2/Dist/Zilla/Dist/Builder.pm line 378
    Dist::Zilla::Dist::Builder::ensure_built('Dist::Zilla::Dist::Builder=HASH(0x4404978)') called at /usr/local/share/perl/5.18.2/Dist/Zilla/Dist/Builder.pm line 442
    Dist::Zilla::Dist::Builder::build_archive('Dist::Zilla::Dist::Builder=HASH(0x4404978)') called at /usr/local/share/perl/5.18.2/Dist/Zilla/App/Command/build.pm line 66
    Dist::Zilla::App::Command::build::execute('Dist::Zilla::App::Command::build=HASH(0x22361d0)', 'Getopt::Long::Descriptive::Opts::__OPT__::2=HASH(0x2092f60)', 'ARRAY(0x202dc80)') called at /usr/share/perl5/App/Cmd.pm line 282
    App::Cmd::execute_command('Dist::Zilla::App=HASH(0x2087328)', 'Dist::Zilla::App::Command::build=HASH(0x22361d0)', 'Getopt::Long::Descriptive::Opts::__OPT__::2=HASH(0x2092f60)') called at /usr/share/perl5/App/Cmd.pm line 210
    App::Cmd::run('Dist::Zilla::App') called at /usr/local/bin/dzil line 15