-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
Crash when trying to autocomplete #29428
Comments
comment:1
@mmasdeu: Please provide a small example that leads to the problem. The main branch of Sage does not use jedi yet, so you could install Sage from source as a workaround. |
comment:2
Attachment: Sage_crash_report.txt I uninstalled my extensions and it seems that the problem persists. Here is a MNWE:
After this, nothing shows up. After a couple of seconds, Sage crashes. I attached the crash report. |
comment:4
I just installed IPython 7.13 and Jedi 0.17.0, and I don't see this problem. I'm still working out the kinks with the IPython installation, and in particular, the preparser seems to be broken: I get
But this works:
|
comment:5
I actually do see a problem, but not a crash. I'm attaching a screenshot after hitting |
screen shot after Et. |
comment:6
Attachment: Screen Shot 2020-04-25 at 11.39.23 AM.png We had a similar problem with polymake/jupymake. Tab completion in IPython runs in a separate thread. This can break packages that are not prepared for threaded operation. |
comment:7
Replying to @mkoeppe:
For reference: This happened in #22704, sagemath/sagetrac-mirror@bcc7c6b |
comment:8
Replying to @jhpalmieri:
I can confirm that this is fixed with jedi 0.17, specifically davidhalter/jedi@e1425de So I guess this can be closed, since 0.16 will never be used in Sage. |
comment:10
I don't really think we need reviewer names for tickets to be closed, but I'll enter my name anyway. |
Reviewer: John Palmieri |
Working with some custom modules that use cython, Sage crashes. Tracking it down, it appears that the source of the problem lies in the changes introduced in #24681.
The Jedi code tries to call
get_source()
and fails terribly because of that. I understand that #24681 tried to solve a problem, but the one it causes is much worse.This is running Arch Linux with package sagemath 9.0-12, currently (2020/03/30) up to date.
CC: @videlec @jdemeyer @embray @antonio-rojas
Component: cython
Keywords: autocompletion, jedi
Reviewer: John Palmieri
Issue created by migration from https://trac.sagemath.org/ticket/29428
The text was updated successfully, but these errors were encountered: