python-language-server
python-language-server copied to clipboard
Completion in python provides $0 instead of argument list
Some version, after the 0.30.0, maybe broke the arguments list, when autocomplete appear Exception($0) for example, and not Exception(args).
When I downgrade to 0.30.0 everything works fine.
Maybe I could help to fix this, but I don't know where to start.
Your guys can discover more details about this issue, and the resolution that I followed in the link: #133580 Spacemas
Version 0.31.4 works fine for me, 0.31.9 appear Exception($0).
So, it is some problem after 0.31.4... well, I will search for how this happens. Thanks for the help.
I have the same problem, when company autocomplete left a $0 string
Example:
keys.update($0)
This happen whit all function having arguments
IMO this (getting Exception($0)) is the right thing to do because textDocument/signatureHelp will tell you what the arguments should be.
In case the text editor doesn't have the signatureHelp capability, then pyls should do the old behavior of Exception(${1:args}).
@dalthviz, please take a look at this one after I release 0.33.0 this afternooon.