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

Can't find definition of inherited method when using language server #1356

Closed
zydxt opened this issue Jul 20, 2019 · 0 comments
Closed

Can't find definition of inherited method when using language server #1356

zydxt opened this issue Jul 20, 2019 · 0 comments
Assignees
Labels
bug Something isn't working feature: references

Comments

@zydxt
Copy link

zydxt commented Jul 20, 2019

Environment data

  • VS Code version: 1.35.1
  • Extension version (available under the Extensions sidebar): 2019.6.24221
  • OS and version: Linux x64 5.1.16-1-MANJARO
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.7.3
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): pipenv
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info #3977): Language Server

Expected behaviour

When go to definition of inherited method, It should find the definition of method inherited from parent class

Actual behaviour

When go to definition, it show that no definition found (but the autocomplete work well):
Screenshot_20190720_224640
Screenshot_20190720_231940

But when I set jediEnabled to true, It works well as expected.

Actual behaviour

  1. Set jediEnabled to false
  2. Create a class and declare a method
  3. Create a new class that inherit the previous one, and call method inherited from parent class
  4. Trigger go to definition
@brettcannon brettcannon transferred this issue from microsoft/vscode-python Jul 22, 2019
@jakebailey jakebailey added bug Something isn't working feature: references labels Jul 22, 2019
@MikhailArkhipov MikhailArkhipov self-assigned this Aug 15, 2019
@CTrando CTrando assigned CTrando and unassigned MikhailArkhipov Aug 16, 2019
@CTrando CTrando closed this as completed Aug 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working feature: references
Projects
None yet
Development

No branches or pull requests

4 participants