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

Hovering Mouse Over Decorated Functions Shows Decorator As Function Name #14410

Closed
rohansekhri opened this issue Oct 15, 2020 · 1 comment
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@rohansekhri
Copy link

Note

Bug has been opened here as per suggestion from microsoft/vscode#108707 (comment)

Environment data

  • Version: 1.50.1 (system setup)
  • Commit: d2e414d9e4239a252d1ab117bd7067f125afd80a
  • Date: 2020-10-13T15:06:15.712Z
  • Electron: 9.2.1
  • Chrome: 83.0.4103.122
  • Node.js: 12.14.1
  • V8: 8.3.110.13-electron.0
  • OS: Windows_NT x64 10.0.19041
  • Extension version (available under the Extensions sidebar): v2020.9.114305
  • Python version (& distribution if applicable, e.g. Anaconda): Base
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): Base
  • Relevant/affected Python packages and their versions: N/A
  • Relevant/affected Python-related VS Code extensions and their versions: N/A
  • Value of the python.languageServer setting: Jedi

Expected behaviour

On hovering, the decorated function name should be shown

Actual behaviour

On hovering, the decorator name is shown

Since all extensions were disabled, this looks more like an editor issue than a Python extension issue

Steps to Reproduce:

  • Write a decorated function in Python as shown
  • Hover the mouse over the decorated method

96074929-eb821500-0e77-11eb-8f9d-a593b1f430d0

Logs

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

XXX

@rohansekhri rohansekhri added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Oct 15, 2020
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Oct 19, 2020
@kimadeline
Copy link

Hello @rohansekhri, thank you for reaching out.

We are in the process of refactoring the way we use Jedi, so I will be closing this issue in favor of #11995.

In the meantime, I'd encourage you to try Pylance, a new and more performant language server we recently released that may solve the issue you are encountering. You can download it from the marketplace and install it alongside the core Python extension.

Thank you!

@ghost ghost removed the triage label Oct 19, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants