Closed KasraF closed 1 year ago
Even locally, there's a corner case where if this code is the first to load, the Projection Boxes simply never show up, which might confuse the user. But at least even then they can see the exception in the Run
panel.
It might be worth handling syntax errors in a more robust way such that they appear in the projection boxes similar to runtime errors both locally and on the web.
Turns out the remove_comments_and_docstrings
function was throwing an unhandled parse error, which happened to work in the local version. We need to be more careful with error handling, there are a lot of unwritten assumptions about what can fail in run.py
and when.
Fixed in efd0bce.
This code:
Correctly shows an exception on the local build:
But on the web, they fail silently: