Skip to content

Can not show all suggestions for socket, and go to definition will go to the wrong line. #5152

@MisLink

Description

@MisLink

Environment data

  • VS Code version: 1.33.0
  • Extension version (available under the Extensions sidebar): 2019.3.6352
  • OS and version: 10.14.2
  • Python version (& distribution if applicable, e.g. Anaconda): CPython 3.6.6
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Relevant/affected Python packages and their versions: N/A

using language server.

Expected behaviour

Display all avliable suggestions for socket, and go to the right source code.

Actual behaviour

Suggestion:
image

There are all suggestions for package socket.

Go to definition:

Jietu20190408-114921-HD

I have no idea these behaviors are related or not, they just happened together. If not, I can divide them into two issues.

Steps to reproduce:

example code:

import socket

socket.socket

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

N/A

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

go to definition:

[Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /Users/me/.asdf/installs/python/3.6.6/lib/python3.6/socket.py

Metadata

Metadata

Assignees

No one assigned

    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