mirror of
https://github.com/patrickchugh/terravision.git
synced 2026-05-09 08:25:25 +02:00
[GH-ISSUE #159] Terravision hangs in resolve_all_variables() when source is tfdata.json (stuck in strip_var_curlies) #91
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#91
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 @ClementV78 on GitHub (Jan 22, 2026).
Original GitHub issue: https://github.com/patrickchugh/terravision/issues/159
Summary
Terravision hangs during variable resolution when using a tfdata.json source. The process spins CPU and never reaches rendering. Stack trace shows it looping in:
modules/interpreter.py -> find_replace_values -> helpers.strip_var_curlies
Environment
Repro steps
terravision draw --source /path/to/terraform --debug
terravision draw --source /path/to/tfdata.json --format png --outfile /tmp/out.png
Observed
modules/helpers.py: strip_var_curlies
modules/interpreter.py: find_replace_values
Expected
Rendering should complete from tfdata.json without re-running variable resolution.
Workaround
Bypass Terravision CLI and call drawing.render_diagram() directly using the venv python:
This produces the output immediately.
Notes
The hang happens before Graphviz, during _enrich_graph_data() / resolve_all_variables().
@patrickchugh commented on GitHub (Jan 22, 2026):
@ClementV78 Can you try with the latest version of the code I just pushed?
@patrickchugh commented on GitHub (Jan 31, 2026):
Can I close this @ClementV78 ¿