Skip to content

Exccessive completion of argument list for functions and properties #15724

Description

Environment data

  • VS Code version: 1.54.2
  • Extension version: v2021.3.658691958
  • OS and version: Windows 10 Pro
  • 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)

Activity

  1. added
    triage-neededNeeds assignment to the proper sub-team
    bugIssue identified by VS Code Team member as probable bug
    on Mar 19, 2021
  2. brettcannon commented on Mar 19, 2021

    @brettcannon
    Member

    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.

  3. MaksimZh commented on Mar 22, 2021

    @MaksimZh
    Author

    I confirm that either disabling experiments with "python.experiments.enabled": false or switching to Pylance eliminates this behavior in my setup.
    Thanks!

  4. brettcannon commented on Mar 22, 2021

    @brettcannon
    Member

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

  5. karthiknadig commented on Mar 22, 2021

    @karthiknadig
    Member

    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

  6. ghost removed
    triage-neededNeeds assignment to the proper sub-team
    on Mar 22, 2021
  7. ghost removed on Mar 22, 2021
  8. locked as resolved and limited conversation to collaborators on Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions