Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing fails with Elm Debugger if too large #22

Open
7hoenix opened this issue Dec 29, 2022 · 1 comment
Open

Parsing fails with Elm Debugger if too large #22

7hoenix opened this issue Dec 29, 2022 · 1 comment

Comments

@7hoenix
Copy link

7hoenix commented Dec 29, 2022

Just wanted to open this to save someone an hour or two some day in the future.

Above a certain number of vertices seems to run into the "Too much recursion" bug when developing locally.

Uploads were working just fine on your example site: https://unsoundscapes.com/elm-obj-file/examples/viewer/ but then when I went to use them in development it would blow up 😞.

Workaround

Turning off the elm debugger (using Vite this was: elmPlugin({ debug: false})) fixes it.

@w0rm
Copy link
Owner

w0rm commented Dec 30, 2022

Does it happen when parsing or when the debugger wants to print the model?

You can try storing the result wrapped in a function to hide it from the debugger (\_ -> result)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants