You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Exccessive completion of argument list for functions and properties #15724
Python version (& distribution if applicable, e.g. Anaconda): 3.9.1
Type of virtual environment used: N/A
Relevant/affected Python packages and their versions: N/A
Relevant/affected Python-related VS Code extensions and their versions: N/A
Value of the python.languageServer setting: Jedi
Expected behaviour
Completion of standard print function: prin -> print or print()
Completion of NumPy array shape property: a.shap -> a.shape
Actual behaviour
Completion of standard print function: prin -> print(sep=..., end=..., file=..., flush=...)
Completion of NumPy array shape property: a.shap -> a.shape(value)
I can verify this is happening if you use JediLSP as your language server (which you might be due to being in an experiment). If you opt out of the experiment or switch to Pylance this will go away.
I confirm that either disabling experiments with "python.experiments.enabled": false or switching to Pylance eliminates this behavior in my setup.
Thanks!
And just as a follow-up, we are going to be upgrading our dependencies which will remove this behaviour (although it does mean the better feature set of Jedi won't be available under Python 2).
This is fixed in the latest jedi-language-server. This PR will update the extension to use the latest one, in addition to falling back to old jedi for 2.7. #15734
Activity
brettcannon commentedon Mar 19, 2021
I can verify this is happening if you use
JediLSPas your language server (which you might be due to being in an experiment). If you opt out of the experiment or switch to Pylance this will go away.MaksimZh commentedon Mar 22, 2021
I confirm that either disabling experiments with
"python.experiments.enabled": falseor switching to Pylance eliminates this behavior in my setup.Thanks!
brettcannon commentedon Mar 22, 2021
And just as a follow-up, we are going to be upgrading our dependencies which will remove this behaviour (although it does mean the better feature set of Jedi won't be available under Python 2).
karthiknadig commentedon Mar 22, 2021
This is fixed in the latest jedi-language-server. This PR will update the extension to use the latest one, in addition to falling back to old jedi for 2.7. #15734