question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

python extension refactoring tools not working

See original GitHub issue

The Python extension refactoring tools “Extract Variable” “Extract Method” and “Sort Imports” do not do anything. These are the errors: image image image

  • Web Browser: New Edge
  • Local OS: Windows
  • Remote OS: Linux
  • Remote Architecture: Linux
  • code-server --version: 3.7.4 11f53784c58f68e7f4c5b3b8dae9407caa41725b

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
clouradevcommented, Dec 28, 2020

Hello, I had the same problem and managed to solve it by following these steps: Remove all python related extensions Go to /config/extensions from the terminal delete the ms-python folder Restart the code-server Download the ms-python.python-2020.10.332292344 version from the github extension page and install manually Restart and configure the python interpreter

0reactions
oxycommented, Jun 18, 2021

Hey there; tested this with the latest versions (code-server v3.10.2, python v2021.5.926500501, jupyter v2021.6.832593372) and it all works. Closing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python refactoring fails in Visual Studio Code - Stack Overflow
The Python extension you have installed, uses the Rope library to perform refactoring/renaming of python variables and the like. So yes, you'll ...
Read more >
Cannot get refactoring and renaming to work #5008 - GitHub
Renaming and getting references won't work. Few days ago, the plugin was working flawlessly. Environment data. VS Code version: 1.32.3
Read more >
Refactoring source code in Visual Studio Code
Source code refactoring can improve the quality and maintainability of your project by restructuring your code while not modifying the runtime behavior. Visual ......
Read more >
Refactoring Python code - YouTube
refactoring code isn't hard, when you've got a code extension Sourcery extension : https://marketplace.visualstudio.com/items?
Read more >
Refactor code | PyCharm Documentation - JetBrains
If conflicts are expected after the refactoring, PyCharm displays a dialog with a brief description of the encountered problems.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found