-
Notifications
You must be signed in to change notification settings - Fork 55
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
StackOverflow while compiling meander expression #133
Comments
There doesn't appear to be anything special about the form that fails to compile:
I've tried cutting out parts of the form and one weird thing is that if I remove either sub-expressions, it compiles! This seems odd to me because it is not a particularly deeply nested structure. |
@noprompt any debugging suggestions? I'd like to try to narrow this issue down but not sure where to start. |
@timothypratley Not sure. Here's what I see:
Recently, someone at work encountered a similar situation to the one you're in |
I tried removing my ~/.lein/profile and still see the behavior.
and stack trace attached: |
@noprompt FYI I've been able to narrow this down a bit! |
Just for reference here's the same pattern with all the symbols replaced with a
The example in the zip is distracting because of all the symbols (sorry about that), so this version makes it clear it's just a nested structure with some logic variables. |
I was able to reproduce the error with
I agree and, actually, bumping up the stack size ended up being the prescription for the person I mentioned earlier.
I'm certain it could be. Pending a thorough investigation, perhaps we should update the README, etc. |
👍 I'll submit a PR |
Minor change to allow users to find known issues and solutions.
issue #133: Adds link from README to issues
meanderbug.zip
Attached is a project, if you run
lein check
it fails to compile with a StackOverflow while expanding the meander macro.If you send it to the REPL, it compiles just fine... weird!!!
=== UPDATE ===
You can work around this issue by increasing the JVM stack size, which is quite small by default.
Add
:jvm-opts ["-Xss2m"]
to your project.clj (at the top level) to allocate a larger (2megabyte) stack.The text was updated successfully, but these errors were encountered: