roc-lang / roc

A fast, friendly, functional language.
https://roc-lang.org
Universal Permissive License v1.0
3.86k stars 284 forks source link

`roc check` crashes on very large .roc files #6830

Open Hasnep opened 1 week ago

Hasnep commented 1 week ago

As discussed in this Zulip thread

roc check overflows its stack when checking very large files (11MB large).

To reproduce, here's a JS script that generates a 29MB file Example.roc, which causes roc check to crash: https://gist.github.com/Hasnep/8b6ecf4c2f1f528f1811d0196fb0f856