| Summary: | No way to recover from a syntax error without restarting the kernel | ||
|---|---|---|---|
| Product: | [Applications] cantor | Reporter: | Antonio Rojas <arojas> |
| Component: | sage-backend | Assignee: | Cantor Bugs <cantor-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | warquark |
| Priority: | NOR | ||
| Version First Reported In: | 20.11.80 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/education/cantor/commit/7abf57f88ba69883237d84c82db3f195eb961693 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: |
Cantor info
First execution Second execution |
||
|
Description
Antonio Rojas
2020-11-14 08:29:36 UTC
A possibly relevant merge request was started @ https://invent.kde.org/education/cantor/-/merge_requests/22 Created attachment 133329 [details]
Cantor info
Created attachment 133330 [details]
First execution
Created attachment 133331 [details]
Second execution
Interesting, because I can't reproduce it with 20.11.80 on Ubuntu 20.04. (I have a problem with creating desktop recording, so I have just make a few screenshots) sage 9.1 used a very old ipython version, which probably behaves differently. You use sage 9.2? (In reply to Nikita Sirgienko from comment #7) > You use sage 9.2? Yes, but I could also reproduce it with the distro Sage 9.1 package built against ipython 7 Ok. I also reproduce it with Sage 9.2 on Ubuntu 20.10 Git commit 7abf57f88ba69883237d84c82db3f195eb961693 by Antonio Rojas. Committed on 14/11/2020 at 15:48. Pushed by arojas into branch 'release/20.12'. Fix unusable Sage session after a syntax error When we are thrown to the additional input prompt, simply report and error and send an interrupt signal to exit. Do not try to guess what the problem is and fix it: this might be caused by an unmatched opening bracket or closing bracket, in which case we would be stuck in the additional input prompt forever M +2 -2 src/backends/sage/sageexpression.cpp https://invent.kde.org/education/cantor/commit/7abf57f88ba69883237d84c82db3f195eb961693 |