p5-Compiler-Parser icon indicating copy to clipboard operation
p5-Compiler-Parser copied to clipboard

Build fail at test t/app/Plack/Handler/Apache2.t

Open jimhall opened this issue 11 years ago • 0 comments

Hi -

Failing to build the module during the test in the subject line. Error message is:

t/app/Plack/Handler/Apache2.t ............. 1/? [ERROR]: syntax error :  at 23
Can't call method "root" on an undefined value at /home/jhall/.cpan/build/Compiler-Parser-0.09-pXhFxF/blib/lib/Compiler/Parser/AST/Renderer/Engine/Text.pm line 14, <DATA> line 1.
    # Child (parse Plack/Handler/Apache2.pm) exited without calling finalize()

Seems to be this bit of code:

module { 'Apache2::RequestIO',

I don't have installed. Is it required? The error message then refers to this line of code (line 14 commented):

sub render {
    my ($self, $ast) = @_;
    my $root = $ast->root;     ## line 14
    my $args = +{};
    $args->{$_} = $root->{$_} foreach @{$root->branches};
    print BOLD, '├── ';
    $self->__print_data($root);
    print "\n";
    $self->__render($args, 1);
}

Seems to be a lot of modules made optional (Plack, etc.) but not required to install the module. But in this case do I need the apache module configured in order to pass this test? Do you have a list of the optional modules in your tests or is that more an exercise for me to figure out? Maybe the Apache2.t can be made optional somehow also?

jimhall avatar Apr 18 '14 19:04 jimhall