-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
all_completions returns nothing (simple fix suggested) #11541
Comments
I realized the
This way |
Sorry, this one seems to be the right fix:
It's probably better to first compute |
@Carreau would you consider adding this to the next milestone? It's easy to fix and it's really critical for emacs users. Thanks! |
Sure, sending a PR would help. I'm way behind on working on IPython. |
@Carreau check the PR above, please. |
Can we close this? The fix has already been merged. |
This fixes a bug affecting emacs users introduced by 7.2. Fixes ipython#11541
The
Completer.all_completions
method, which emacs python.el and elpy mode use, is returning nothing defined in the current scope. For example:Internally it's using jedi but discarding jedi completions. Now,
all_completions
calls the deprecatedcomplete
instead ofcompletions
. A simple change fixes both the usage of a deprecated method and a bug:Why not redefining
all_completions
like that? At least the following is working for me inside an emacs inferior python session:The text was updated successfully, but these errors were encountered: