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
Preparser not robust enough against typos #14961
Comments
This comment has been minimized.
This comment has been minimized.
Author: Travis Scrimshaw |
comment:2
Here's a patch which is just a hack fix so that sage doesn't crash and it tells you that an error has occurred. It prints the error twice, but it works...
|
Upstream: Reported upstream. No feedback yet. |
comment:3
I've asked on IPython-dev at http://python.6.x6.nabble.com/InputSplitter-and-SyntaxError-td5025938.html |
comment:4
Thanks Volker. I was going to do that first thing this morning (i.e. right now). |
comment:6
The IPython devs acknowledged that this currently does not work. It sounds like they would accept a patch but don't plan on fixing this in the near future themselves. So fixing this properly will take some time. In the meantime, the proposed workaround looks good. However, it has an unrelated change to in |
Reviewer: Volker Braun |
Changed upstream from Reported upstream. No feedback yet. to Reported upstream. Developers acknowledge bug. |
comment:7
Eeek, how did I let that get in there. Here's the patch without that change. |
comment:8
Looks good to me. |
Attachment: trac_14961-hack_fix_preparser-ts.patch.gz |
comment:10
Attachment: 14961_doctest.patch.gz |
Changed author from Travis Scrimshaw to Travis Scrimshaw, Jeroen Demeyer |
This comment has been minimized.
This comment has been minimized.
comment:11
attachment: 14961_doctest.patch needs review. |
comment:12
Fine with me, though I think the effort should go in pushing this upstream not doctesting the temporary workaround. |
comment:13
Followup at #15075 for a proper fix. |
Merged: sage-5.12.beta4 |
I made a typo and sage crashed:
Note that there is one opening squigly bracket
{
and one closing square bracket]
.Here's the backtrace
Apply [trac_14961-hack_fix_preparser-ts.patch] and attachment: 14961_doctest.patch
Upstream: Reported upstream. Developers acknowledge bug.
Component: user interface
Author: Travis Scrimshaw, Jeroen Demeyer
Reviewer: Volker Braun
Merged: sage-5.12.beta4
Issue created by migration from https://trac.sagemath.org/ticket/14961
The text was updated successfully, but these errors were encountered: