Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97371

Python refactoring fail on Visual Studio Code(vscode)

$
0
0

I switched to Vscode for python programming recently. Below is my python configuration in vscode settings:

"python.pythonPath": "/Users/hzhang/.virtualenvs/env-2.7/bin/python",
"python.autoComplete.extraPaths": [
    "/Users/hzhang/Work/xxx/shared_modules"
],

Basically, I just configure python interpreter and add one extra shared module path.

When I try to refactor a variable name, it throws this Error which says rope is not installed, it doesn't work even I install it. Based on my understanding, refactor variables is a feature of vscode, it shouldn't rely on any specific language.

Has anyone had the same issue, please help! enter image description here

Once I installed rope, refacotr is still not working, it popup this error: enter image description here

I am on Python 2.7
vscode: Version 1.19.3 (1.19.3)
rope version: 0.10.7

Viewing all articles
Browse latest Browse all 97371

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>