You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extension version (available under the Extensions sidebar): v2021.3.680753044
OS and version: Microsoft Windows 10 Enterprise
Python version (& distribution if applicable, e.g. Anaconda): 3.6.10
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Relevant/affected Python packages and their versions: XXX
Relevant/affected Python-related VS Code extensions and their versions: XXX
Value of the python.languageServer setting: Jedi
[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]
Expected behaviour
Should be able to refactor and change all the references
Actual behaviour
Throw error when trying to rename class name
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Type F2
Change class name and hit Enter key
It hanges for 15 seconds and throw below error
Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
"fileHash":"a7b1945783287d385f48e0007f0411ecf5b751cf945617c2e5827a724354bfd33dd7ff2099aea3b5cdb88e611850d9dd6d37925ffbb58257cdeff133e8f66534","companyDisplayName":"Anaconda, Inc.","envType":"Conda","envPath":"/home/ysu2/.conda/envs/airflow","envName":"airflow"},{"architecture":3,"path":"/home/ysu2/.conda/envs/bootcamp/bin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.6.13-final","major":3,"minor":6,"patch":13,"prerelease":["final"],"build":[],"version":"3.6.13-final"},"sysVersion":"3.6.13 |Anaconda, Inc.| (default, Feb 23 2021, 21:15:04) \n[GCC 7.3.0]","sysPrefix":"/home/ysu2/.conda/envs/bootcamp","fileHash":"d73d31fb3d7b6ca531f75b8ed754608951d91b7e1d25941ef593bf9faa14f1ae4a4a6331e7750a60b08f6f2146edb5995a50de695aeaf36ad09aeadd09ab86e6","companyDisplayName":"Anaconda, Inc.","envType":"Conda","envPath":"/home/ysu2/.conda/envs/bootcamp","envName":"bootcamp"},{"architecture":3,"path":"/usr/bin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"2.7.5-final","major":2,"minor":7,"patch":5,"prerelease":["final"],"build":[],"version":"2.7.5-final"},"sysVersion":"2.7.5 (default, May 20 2019, 12:21:26) \n[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]","sysPrefix":"/usr","fileHash":"a9849e1c355e48bb132c265673fb6af9428325b7e6661926e7f44a3c843d38d0354390d21b17d074d115f2c09020848a5256f446eb78babcd14068c778a7ca7c","envType":"Unknown"},{"architecture":3,"path":"/opt/citadel/bin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"2.7.11-final","major":2,"minor":7,"patch":11,"prerelease":["final"],"build":[],"version":"2.7.11-final"},"sysVersion":"2.7.11 (default, Aug 31 2016, 14:43:04) \n[GCC 5.2.1 20150902 (Red Hat 5.2.1-2)]","sysPrefix":"/opt/citadel","fileHash":"a231ced7d81fea958efbeda799c79e93fb7385d5486ab1c7320cb12f510840e196e0e21d34d48f22c412d4d716536f5267b237a7d2173a37953d5e0d75a92679","envType":"Unknown"},{"architecture":3,"path":"/bin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"2.7.5-final","major":2,"minor":7,"patch":5,"prerelease":["final"],"build":[],"version":"2.7.5-final"},"sysVersion":"2.7.5 (default, May 20 2019, 12:21:26) \n[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]","sysPrefix":"/usr","fileHash":"a9849e1c355e48bb132c265673fb6af9428325b7e6661926e7f44a3c843d38d0354390d21b17d074d115f2c09020848a5256f446eb78babcd14068c778a7ca7c","envType":"Unknown"}]
Info 2021-05-25 04:50:25: Cached data exists getEnvironmentVariables, <No Resource>
Info 2021-05-25 04:50:25: > pyenv root
> pyenv root
Info 2021-05-25 04:50:25: "pyenv root" failed (Error: spawn pyenv ENOENT)
Refactor failed. Syntax error in file <research/Ziv/DataMart.py> line <237>: (unicode error) 'unicodeescape' codec can't decode bytes in position 30-31: malformed \N character escape
[<FrameSummary file /home/ysu2/.vscode-server/extensions/ms-python.python-2021.3.680753044/pythonFiles/refactor.py, line 380 in watch>, <FrameSummary file /home/ysu2/.vscode-server/extensions/ms-python.python-2021.3.680753044/pythonFiles/refactor.py, line 350 in _process_request>, <FrameSummary file /home/ysu2/.vscode-server/extensions/ms-python.python-2021.3.680753044/pythonFiles/refactor.py, line 259 in _rename>, <FrameSummary file /home/ysu2/.vscode-server/extensions/ms-python.python-2021.3.680753044/pythonFiles/refactor.py, line 128 in refactor>, <FrameSummary file /home/ysu2/.vscode-server/extensions/ms-python.python-2021.3.680753044/pythonFiles/refactor.py, line 156 in onRefactor>, <FrameSummary file /auto/energymdl2/anaconda3/envs/commod_py3_20210414/lib/python3.6/site-packages/rope/refactor/rename.py, line 97 in get_changes>, <FrameSummary file /auto/energymdl2/anaconda3/envs/commod_py3_20210414/lib/python3.6/site-packages/rope/refactor/rename.py, line 195 in rename_in_module>, <FrameSummary file /auto/energymdl2/anaconda3/envs/commod_py3_20210414/lib/python3.6/site-packages/rope/refactor/occurrences.py, line 76 in find_occurrences>, <FrameSummary file /auto/energymdl2/anaconda3/envs/commod_py3_20210414/lib/python3.6/site-packages/rope/base/utils/__init__.py, line 12 in _wrapper>, <FrameSummary file /auto/energymdl2/anaconda3/envs/commod_py3_20210414/lib/python3.6/site-packages/rope/refactor/occurrences.py, line 392 in source_code>, <FrameSummary file /auto/energymdl2/anaconda3/envs/commod_py3_20210414/lib/python3.6/site-packages/rope/base/utils/__init__.py, line 12 in _wrapper>, <FrameSummary file /auto/energymdl2/anaconda3/envs/commod_py3_20210414/lib/python3.6/site-packages/rope/refactor/occurrences.py, line 412 in pymodule>, <FrameSummary file /auto/energymdl2/anaconda3/envs/commod_py3_20210414/lib/python3.6/site-packages/rope/base/project.py, line 116 in get_pymodule>, <FrameSummary file /auto/energymdl2/anaconda3/envs/commod_py3_20210414/lib/python3.6/site-packages/rope/base/pycore.py, line 142 in resource_to_pyobject>, <FrameSummary file /auto/energymdl2/anaconda3/envs/commod_py3_20210414/lib/python3.6/site-packages/rope/base/pycore.py, line 255 in get_pymodule>, <FrameSummary file /auto/energymdl2/anaconda3/envs/commod_py3_20210414/lib/python3.6/site-packages/rope/base/pyobjectsdef.py, line 162 in __init__>, <FrameSummary file /auto/energymdl2/anaconda3/envs/commod_py3_20210414/lib/python3.6/site-packages/rope/base/pyobjectsdef.py, line 191 in _init_source>]
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Environment data
python.languageServer
setting: Jedi[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (
python.languageServer: 'Microsoft'
), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]Expected behaviour
Should be able to refactor and change all the references
Actual behaviour
Throw error when trying to rename class name
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)The text was updated successfully, but these errors were encountered: