You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.
Describe the bug
As far as I can tell this is from a known limitation of Cython. When you import from Aspidites.tests.examples.compiled without invoking main it just grabs the current stack frame from the calling scope. As of now Cython does not make use of stack frames and disposes of them as soon as you are out of scope.
$ ./compiled
Traceback (most recent call last):
File "Aspidites/tests/examples/compiled.pyx", line 79, in init Aspidites.tests.examples.compiled
C = pmap({'a': (3+5), 'b': 8, 'c': True, 4: None, 'd': Maybe(SafeExp, 6, 2*5+3)})
File "Aspidites/monads.pyx", line 37, in Aspidites.monads.Maybe.__init__
File "/Users/ross/.pyenv/versions/3.9.6/lib/python3.9/inspect.py", line 1552, in stack
return getouterframes(sys._getframe(1), context)
ValueError: call stack is not deep enough
To Reproduce
Steps to reproduce the behavior:
Run the binary generated from embed.
Expected behavior
It should print hello world
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: macos-11
Version 0.14.31
Proposed Workaround
I tried getting rid of stack inspection but the first call to Maybe or SafeExp but seemingly got the exact same error. Not sure if that's due to caching from Cython or what...
The text was updated successfully, but these errors were encountered:
Describe the bug
As far as I can tell this is from a known limitation of Cython. When you import from Aspidites.tests.examples.compiled without invoking main it just grabs the current stack frame from the calling scope. As of now Cython does not make use of stack frames and disposes of them as soon as you are out of scope.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should print hello world
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Proposed Workaround
I tried getting rid of stack inspection but the first call to Maybe or SafeExp but seemingly got the exact same error. Not sure if that's due to caching from Cython or what...
The text was updated successfully, but these errors were encountered: