Dev Tools · 2h ago
Typst's #eval Bypasses Cyclic Import Check, Causing Stack Overflow
A bug in Typst's #eval function causes a stack overflow when recursively importing the same file, instead of reporting a cyclic import error. The root cause is a single line using Route::default() instead of Route::extend(), which skips the cyclic detection. The fix restores proper import checking for runtime evaluation.
Meridian48 take
A one-word code change highlights how even mature systems can have subtle gaps in edge-case handling, especially around runtime evaluation features.
Read the full reporting
Clear the Lineup — Chasing a Stack Overflow in Typst's `#eval` Down to One Wrong Word →
DEV Community
typststack-overflow