Skip to content

Refactor: Rename variable results in "Task Cancelled" (with MS Language Server) #5942

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

Closed
amittleider opened this issue Jun 7, 2019 · 1 comment
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@amittleider
Copy link

Environment data

  • VS Code version: 1.35.0
  • Extension version (available under the Extensions sidebar): 2019.5.18875
  • OS and version: Ubuntu 18.04
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.7 64 bit
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Language Server (more info How to update the language server to the latest stable version #3977): Language Server

Expected behaviour

The "Rename Variable" function will fail with the error message in the bottom left saying "Task Cancelled". I have tried in the Flask repo and there is no problem, but there is a problem with my repo. I cannot provide my repo for repro of the bug, so if someone has some ideas about logs we can check or how to make a minimal repro, let me know and I will try. There is a gift below showing the behavior.

VSCodeLSCantRename

Actual behaviour

VSCode stalls trying to rename a variable. Sometimes ending with the message "Task Cancelled" in the bottom right corner of the window.

Steps to reproduce:

  1. Any ideas on this are appreciated. Might we have logs somewhere so we can know how to produce a minimal repro?

Logs

Logs in the JS console don't look meaningful. However, I see a message in the 'Log (Extension Host)' window, which could be related:

ms-python.python-2019.5.18875/out/client/extension
[2019-06-07 12:33:12.457] [exthost] [error] Error: Cannot resolve tree item for element 0/0:wa_trading
	at define.resolveTreeNode.a.asPromise.then.then.e.getChildren.then (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:481:281)
@DonJayamanne
Copy link

Issue moved to microsoft/python-language-server #1190 via ZenHub

@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Jun 10, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 17, 2019
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

2 participants