python-language-server icon indicating copy to clipboard operation
python-language-server copied to clipboard

Completion in python provides $0 instead of argument list

Open vinimmelo opened this issue 5 years ago • 5 comments

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

vinimmelo avatar Apr 03 '20 20:04 vinimmelo

Version 0.31.4 works fine for me, 0.31.9 appear Exception($0).

Rational-Curiosity avatar Apr 20 '20 09:04 Rational-Curiosity

So, it is some problem after 0.31.4... well, I will search for how this happens. Thanks for the help.

vinimmelo avatar Apr 21 '20 17:04 vinimmelo

I have the same problem, when company autocomplete left a $0 string Example:

keys.update($0)

This happen whit all function having arguments

marcelino-m avatar Apr 22 '20 01:04 marcelino-m

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}).

rwols avatar May 01 '20 13:05 rwols

@dalthviz, please take a look at this one after I release 0.33.0 this afternooon.

ccordoba12 avatar May 25 '20 17:05 ccordoba12