Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

go to definition not work for system libs #1747

Closed
clor09 opened this issue Nov 3, 2019 · 1 comment
Closed

go to definition not work for system libs #1747

clor09 opened this issue Nov 3, 2019 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@clor09
Copy link

clor09 commented Nov 3, 2019

Environment data

  • VS Code version: m using the oss version, 1.39.2
  • Extension version (available under the Extensions sidebar): 2019.10.44104 (not sure if this is the version num? strange schema)
  • OS and version: archlinux
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.4
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: all
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info How to update the language server to the latest stable version vscode-python#3977): Language Server

Expected behaviour

e.g: In builtin socketserver, when ctrl+click on the UDPServer in sentence class ThreadingUDPServer(ThreadingMixIn, UDPServer): pass, vsc should bring me to UDPServer definition, but it not

Actual behaviour

As descripted in Expected behaviour, but Jedi worked in that situation

Steps to reproduce:

  1. create a py file anywhere. import socketserver(or any other py builtin std library) at the header of this file
  2. write some code, e.g
    class TestServer(socketserver.ThreadingTCPServer): pass
  3. follow this path, go to ThreadingTCPServer definition -> go to TCPServer definition

Logs

seems got no error

User belongs to experiment group 'ShowPlayIcon - start'
User belongs to experiment group 'ShowExtensionSurveyPrompt - control'
User belongs to experiment group 'LS - control'
> conda --version
> pyenv root
> python3.7 -c "import sys;print(sys.executable)"
> python3.6 -c "import sys;print(sys.executable)"
> python3 -c "import sys;print(sys.executable)"
> python2 -c "import sys;print(sys.executable)"
> python -c "import sys;print(sys.executable)"
> python -c "import sys;print(sys.executable)"
> conda info --json
Starting Microsoft Python language server.
> conda info --json
> conda --version

no output in Developer Tools panel

@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Nov 4, 2019
@jakebailey
Copy link
Member

Duplicate of #840. Navigation/hover/completion/etc not working outside the workspace is the current expected behavior.

@jakebailey jakebailey added the duplicate This issue or pull request already exists label Nov 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants