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
Comments
|
The likely reason is that https://github.com/rakudo/rakudo/blob/master/src/Perl6/Actions.nqp#L1416 <- does not check if the phaser is already installed. Any ideas on how to neatly add a check to the method? |
|
AST for |
|
Does that have anything to do with the optimizer? I think the source code gets a second parse pass and I've just noticed surprisingly some debug code in src/Perl6/Grammar.nqp outputs twice during a run. UPDATE The ast stage is before optimization so we should look at the optimize stage. I've also tried commenting out the always-matched line for my project and didn't see any difference. I know a little more now than when Richard first posted this, and the issue may have an intersection with my problems. (But looking at QAST causes my eyes to glaze over. Ah well, in with a penny, in with a pound.) |
The Problem
Developing a new module to interface with the
--docoption ofperl6CLI callsrendertwice.This is an issue because processing pod to html can be quite time-consuming. Since
renderis called twice, the processing is done twice.Expected Behavior
Given a simple module
Pod::To::HTML2containingand a test file
simple.p6containingI 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::Block::Named.new(name => "pod", config => {}, contents => [Pod::Block::Code.new(allowed => [], config => {}, contents => ["this is some text"])])]
At 4 tree is $[Pod::Block::Named.new(name => "pod", config => {}, contents => [Pod::Block::Code.new(allowed => [], config => {}, contents => ["this is some text"])])]
True
Steps to Reproduce
Nothing more to add
Environment
Operating system: uname -a
Linux merlin 4.18.0-13-generic Io additions #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 -vThis is Rakudo Star version 2018.10 built on MoarVM version 2018.10
implementing Perl 6.c.
The text was updated successfully, but these errors were encountered: