seaofvoices / darklua

A command line tool that transforms Lua code
https://darklua.com/
MIT License
71 stars 9 forks source link

Processing a file with a large do block causes an error #188

Closed ewd3v closed 4 months ago

ewd3v commented 4 months ago

When I was processing a file with a large do block in it, and got a "thread 'main' has overflowed its stack" error. While not a big issue I think it's still worth mentioning.

This happened even without any rules enabled (on any generator). While I couldn't find the exact culprit when I tried recreating the issue, I can still provide the file that caused the error. Simply removing the do block resolves the issue.

I've only tested this on the darklua version 0.13.0.

jeparlefrancais commented 4 months ago

I will close this as it is the same problem as this other issue: https://github.com/seaofvoices/darklua/issues/125

Thank you for taking the time to submit the problematic file, it will be useful once full-moon releases a new version. I'll be able to add this as a test case 🙂