Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go to definition not working #571

Closed
linglingqi007 opened this issue Jan 11, 2018 · 3 comments
Closed

Go to definition not working #571

linglingqi007 opened this issue Jan 11, 2018 · 3 comments
Labels
feature-request Request for new features or functionality

Comments

@linglingqi007
Copy link

Environment data

VS Code version: 1.19.2
Python Extension version: 0.9.1
Python Version: 3.6.4
OS and version: Mac 10.12.6

Actual behavior

Built-in module can not go to definition

like:

image

can not go to definition

image

Expected behavior

Built-in functions can go to definition

Steps to reproduce:

  • command line brew install python3
  • install vscode
  • in vscode ext install python
  • in vscode select interpreter 3.6.4

Logs

Output from Python output panel

Output from Console window (Help->Developer Tools menu)

@DonJayamanne
Copy link

This won't work for some of the native modules as they are not written in python, hence navigation to the source won't work.
For instance navigating to the source of Random should work:

import random
random.Random()

@brettcannon please could you confirm this.

@brettcannon brettcannon changed the title Go to definition no working Go to definition not working Jan 11, 2018
@brettcannon brettcannon added feature-request Request for new features or functionality closed-wontfix labels Jan 11, 2018
@brettcannon
Copy link
Member

Actually all the built-ins are implemented in C (see https://github.com/python/cpython/blob/master/Python/bltinmodule.c). Closing this as "won't fix".

@linglingqi007
Copy link
Author

Oh, I see. Thank you for the help. @DonJayamanne @brettcannon

@lock lock bot locked as resolved and limited conversation to collaborators Jul 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants