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
Try to rename a symbol representing a folder within __init__.py -> "No result found"
Try to rename a folder directly -> no changes reflected in python files
Using Python language server + PyLance on WSL2.
Video example:
VS Code version: Code 1.55.2 (3c4e3df, 2021-04-13T09:35:57.887Z)
OS version: Windows_NT x64 10.0.19042
Remote OS version: Linux x64 5.4.72-microsoft-standard-WSL2
Trying to refactor without PyLance and directly with Python’s Jedi gives:
Refactor failed. Unknown Change
[
<FrameSummary file /home/tolki/.vscode-server/extensions/ms-python.python-2021.4.765268190/pythonFiles/refactor.py, line 380 in watch>,
<FrameSummary file /home/tolki/.vscode-server/extensions/ms-python.python-2021.4.765268190/pythonFiles/refactor.py, line 346 in _process_request>,
<FrameSummary file /home/tolki/.vscode-server/extensions/ms-python.python-2021.4.765268190/pythonFiles/refactor.py, line 259 in _rename>,
<FrameSummary file /home/tolki/.vscode-server/extensions/ms-python.python-2021.4.765268190/pythonFiles/refactor.py, line 128 in refactor>,
<FrameSummary file /home/tolki/.vscode-server/extensions/ms-python.python-2021.4.765268190/pythonFiles/refactor.py, line 163 in onRefactor>
]
Added another much simpler example to reproduce from scratch: PACKAGE
-> __init__.py = import SUBPACKAGE
-> SUBPACKAGE
-----> __init__.py = print("Hello")
This import syntax is right and works properly, and running python PACKAGE/__init__.py or import PACKAGE works.
But trying to refactor SUBPACKAGE does not work:
With Jedi, I get Refactor failed. Unknown Change...
Issue Type: Bug
__init__.py
-> "No result found"Using Python language server + PyLance on WSL2.
Video example:
![video](https://camo.githubusercontent.com/54afbd04290e46937660d229a4b53e4939fdd179790c998cff52248530cb8018/68747470733a2f2f692e696d6775722e636f6d2f78365448474e662e676966)
VS Code version: Code 1.55.2 (3c4e3df, 2021-04-13T09:35:57.887Z)
OS version: Windows_NT x64 10.0.19042
Remote OS version: Linux x64 5.4.72-microsoft-standard-WSL2
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Extensions (13)
A/B Experiments
The text was updated successfully, but these errors were encountered: