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

Peeking References for a extended class #645

Closed
DonJayamanne opened this issue Feb 21, 2019 · 2 comments
Closed

Peeking References for a extended class #645

DonJayamanne opened this issue Feb 21, 2019 · 2 comments
Assignees
Labels
bug Something isn't working feature: symbols
Milestone

Comments

@DonJayamanne
Copy link

@manutero commented on Thu Feb 21 2019

Environment data

  • VS Code version: 1.31.1 (1.31.1)
  • Extension version (available under the Extensions sidebar): 1b8e8302e405050205e69b59abb3559592bb9e60
  • OS and version: macOS Mojave 10.14.3
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.1 64-bit
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): virtualenv
  • Relevant/affected Python packages and their versions:
    • Python 2019.1.0 (microsoft)
    • python-snippets 0.2.0 (cstrap)

Expected behaviour

Peeking References for a Python class might show any class extending it.

Class A():

...

Class B(A): # A is referenced here

Actual behaviour

Picking references of a Python class does not list any ussage of that class as parent class.

Steps to reproduce:

Prerequisites

In the code base, we have at least two classes, A & B. B extends A.


  1. Cursor over Python class A
  2. Peek references (via command palette or shortcut or right clicking)
  3. A ussage from B class is not shown

Logs

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

None.

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)

2console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /Users/martero/workspace/tuenti/flow/flow_core/flow_core/tasks/basetask.py

Relevant user config

  "python.linting.lintOnSave": true,
  "python.linting.pep8CategorySeverity.E": "Warning",
  "python.linting.pylintEnabled": true,
  "python.venvPath": "~/.virtualenvs",
  // "python.jediEnabled": false, // TRIED BOTH, TRUE & FALSE
@MikhailArkhipov
Copy link

Should be covered in #577

@MikhailArkhipov
Copy link

#699

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working feature: symbols
Projects
None yet
Development

No branches or pull requests

3 participants