-
-
Notifications
You must be signed in to change notification settings - Fork 492
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
Web version locks up on Python syntax errors #2297
Comments
That happens for me too at https://tic80.com/create. It doesn't necessarily lock up for other languages. I only tested janet and lua though. |
I can reproduce. Will look at it. |
After some investigation, I've found the reason of this locking up. pocketpy needs c++ exceptions to be enabled to handle errors. According to emscripten's docs:
Although pocketpy itself always use The SolutionIn CMakeLists.txt, add |
fixed with #2315 |
When coding in Python, any syntax error will lock up on run.
For example, this line:
if btn(0) == 1: x+=1
On the exe version, will result in a proper error:
But when running on the Web version (on the create page), this will simply lock up the app and the page has to be refreshed to start using it again.
Version: 1.1.2736
The text was updated successfully, but these errors were encountered: