Skip to content

Fix NoMethodError unless line_numbers: true#2102

Open
jg-rp wants to merge 1 commit into
Shopify:mainfrom
jg-rp:fix-no-method-error
Open

Fix NoMethodError unless line_numbers: true#2102
jg-rp wants to merge 1 commit into
Shopify:mainfrom
jg-rp:fix-no-method-error

Conversation

@jg-rp

@jg-rp jg-rp commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

This PR fixes a bug in BlockBody#parse_for_liquid_tag where nested liquid tags would raise a NoMethodError unless line_numbers: true is passed to Template.parse.

Closes #1734
Closes #2101

@jg-rp jg-rp changed the title Fix NoMethodError when line_numbers: false Fix NoMethodError unless line_numbers: true Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

parse_for_liquid_tag errors without line numbers Bug: {% liquid liquid %} raises raw NoMethodError when line numbers are disabled

1 participant