mirror of
https://github.com/patrickchugh/terravision.git
synced 2026-05-09 08:25:25 +02:00
[GH-ISSUE #175] HCL parser fails on multi-line boolean expressions with && operator #105
Labels
No labels
bug
enhancement
enhancement
good first issue
good first issue
good first issue
pipeline
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/terravision#105
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mmclane on GitHub (Mar 23, 2026).
Original GitHub issue: https://github.com/patrickchugh/terravision/issues/175
Problem
Terravision's HCL parser (lark-based) fails to parse valid Terraform HCL when using the
&&operator in multi-line boolean expressions.Error Message
Followed by a secondary
IndexErroringraphmaker.py:1457when splitting resource names (likely due to corrupted parser state).Sample Code That Fails
This is valid Terraform HCL syntax (
terraform validatepasses), but terravision cannot parse it.Environment
patrickchugh/terravisionWorkaround
Rewriting the expression as a single line works:
Expected Behavior
Terravision should parse valid Terraform HCL that uses
&&operators across multiple lines within parentheses.@mmclane commented on GitHub (Mar 23, 2026):
I have worked around this issue for now by converting it to a single line string.