-
-
Notifications
You must be signed in to change notification settings - Fork 370
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
Completion of function arguments get an extra = sign #385
Comments
Yeah, I think I have noticed this one as well! Thanks. |
Hi, just nudging this. Is there anything I can help to debug this issue? I've noticed that if the completion happens inside a parens and there is a line after, not only the For example, if I complete here in class A:
def a(self, longvarname):
v = set(longvarn)
^
testline I get class A:
def a(self, longvarname):
v = set(longvarname=)
testline
^ |
I'm sure it's not that hard to fix, it's just that I don't have the time to do it. If someone wants to fix this, you have to check where it originates from. It might as well be a Jedi bug (not jedi-vim). |
After digging into the source code for a while, I actually found the problem: it's in davidhalter/jedi.
Those two lines literally add the '=' sign after a |
jedi-vim issue davidhalter#385: davidhalter/jedi-vim#385 Completion of function arguments get an extra = sign
Fixed it in jedi (dev branch). |
With the latest jedi-vim, when completing a variable name that corresponds to a function argument an extra '=' sign appears. It looks to me like it thinks it's still in the function definition, where adding the sign makes sense for keyword arguments.
I attach a screenshot of what happens:
I don't know if I can provide further information (please let me know if I can). I have VIM compiled from source with
homebrew
:Thanks.
The text was updated successfully, but these errors were encountered: