Skip to content

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

Description

@jimhall

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions