Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double call with --doc #2588

finanalyst opened this issue Jan 7, 2019 · 0 comments


None yet
2 participants
Copy link

commented Jan 7, 2019

The Problem

Developing a new module to interface with the --doc option of perl6 CLI calls render twice.

This is an issue because processing pod to html can be quite time-consuming. Since render is called twice, the processing is done twice.

Expected Behavior

Given a simple module Pod::To::HTML2 containing

unit class Pod::To::HTML2;

method render( $pod-tree ) is export {
    say "At $?LINE tree is ", $pod-tree.perl;

and a test file simple.p6 containing

say "Hello World"
=begin pod
   this is some text
=end pod

I would expect the pod-block structure to be output once.

Actual Behavior

$ perl6 -Ip6-pod-render/lib --doc=HTML2 simple.p6
At 4 tree is $[ => "pod", config => {}, contents => [ => [], config => {}, contents => ["this is some text"])])]
At 4 tree is $[ => "pod", config => {}, contents => [ => [], config => {}, contents => ["this is some text"])])]

Steps to Reproduce

Nothing more to add


  • Operating system: uname -a
    Linux merlin 4.18.0-13-generic #14~18.04.1-Ubuntu SMP Thu Dec 6 14:09:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

  • Compiler version (perl6 -v): perl6 -v
    This is Rakudo Star version 2018.10 built on MoarVM version 2018.10
    implementing Perl 6.c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.