-
Notifications
You must be signed in to change notification settings - Fork 372
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
repl shouldn't crash #1412
Comments
It looks like Have you seen a way to replicate this without using |
In particular, I don't believe |
|
Fair enough; that's why I think this and #1413 are properly the same bug. |
I think the REPL is crashable in multiple places, but whatever. Your minimal example from #1413 is fixable by catching |
Hmm. Perhaps what's needed is a |
It actually appears to be from line 105 I'm thinking we should just wrap the whole contents of this function with a try/except to show traceback. |
We should also fix the cause. Here's the real minimal example. => (import [hy.errors [HyTypeError]])
=> (raise (HyTypeError '[] "bad")) This crashes the repl. The easiest solution is to assign a default The nicest solution would probably be to find the right line and column values in some kind of source generated from the expression, probably the pretty-printed Hy models #1360 or maybe the astor-generated Python, if possible. |
The repl should report errors, but not exit.
The text was updated successfully, but these errors were encountered: