Skip to content

Liquid spec in kilt is broken #87

@straight-shoota

Description

@straight-shoota

I noticed a failure in https://github.com/jeromegn/kilt/blob/master/spec/kilt/liquid_spec.cr. This is a different project which uses liquid.cr, but the error seems to be inside the liquid.cr implementation.
Filed an issue on kilt: jeromegn/kilt#30 but posting here as well because it's not clear where the error comes from.

In lib/liquid/src/liquid/codegen_visitor.cr:58:76

 58 | Liquid::Block::ExpressionNode.new("#{escape node.value.var}")))
                                                             ^--
Error: undefined method 'var' for Liquid::Expression

We're testing kilt in https://github.com/crystal-lang/test-ecosystem and it started to fail somwhere between January 15 and January 22 on master.
It also fails against Crystal 1.15.1 so it does not seem to be a regression in the compiler or stdlib.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions