-
Notifications
You must be signed in to change notification settings - Fork 261
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
Autocomplete does not work on function inputs #1366
Comments
Thank you for reporting this. I was not able to reproduce you issue. Could you update jedi to the last version (0.12.0) and see if it makes any difference ? |
That's good to know. I just updated my Jedi to 0.12.0 which did not resolve my issue. Hmm what is your elpy-config?
|
I just updated my elpy version from 1.17.0 to 1.20.0 and completion for both import pandas as pd
def foo(df: pd.DataFrame):
df.he Does autocompletion work in this case using solely annotations? It should suggest head and it doesn't for me. |
It does not for me as well. |
Btw, I did ask the Jedi community davidhalter/jedi#1120 Seems to be a known issue with pandas. |
Thanks for the feedback. If it is a pandas/jedi issue, I am afraid there is not a lot we can do from elpy... |
Summary
Consider the following code
Autocomplete works on
a.spl
suggesting split and splitlines but not ontext.spl
. Realizing this might be a Jedi issue, I installed Atom along with the autocomplete-python package which also uses Jedi in the background. And in Atom, the autocomplete candidates are bang on which leads me to believe that the underlying issue is perhaps not with Jedi?Steps to reproduce
In your Emacs editor, type the above code snippet and examine the completion candidates for
text.spl
My configuration
OS
Ubuntu 17.10
GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21)
Result of
(elpy-config)
Elpy configuration in my init.el
The text was updated successfully, but these errors were encountered: