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
Product and Version [VSCode]: 1.33.0 OS Version [Windows]: Windows 10 (Windows_NT x64 10.0.17763) IntelliCode Extension Version: 1.1.5 Target Platform or Language: Python
** Installed Extensions**: Python 2019.3.6352; Vim 1.3.0; IntelliCode
Steps to Reproduce / Scenario:
First make sure you have a code installation that never has the IntelliCode Extension installed.
Open an empty folder an enter a new python file (see Attachement MyTestFile.py)
Try to rename function function_to_be_renamed to renamed_function (set cursor to function name and press F2 enter new name and press Enter --> Rename works as specified.
Install Intellicode Extension; Reload the folder and press the button Enable it and Reload Window in the dialog IntelliCode Python support requires ...
Do the same steps as in Step 3: --> Nothing happens BUG
Restart VSCode and repeat Step 3: --> Nothing happens BUG
Disable Visual Studio IntelliCode, reload and repeat Step 3: --> Nothing happens BUG
Restart Visual Studio Code and repeat Step 3: --> Nothing happens BUG
Deinstall IntelliCode, restart Visual Studio Code and repeat Step 3: --> Nothing happens BUG
Remove .vscode from home directory; install python extension again and repeat Step 3: --> Nothing happens BUG
Remove directory %APPDATA%\Code and repeat Step 3: --> Rename happens as expected
Conclusion: Something is in %APPDATA%\Code installed with IntelliCode preventing python refactoring working in a correct way.
@h-bex, this looks like a problem with the new Microsoft Python Language Server (which IntelliCode requires). Your steps 7-9 confirm that this behavior exists even if you don't have IntelliCode enabled/installed, but you do have the new Language Server enabled (which is what the "Enable it and Reload Window" prompt does). You should also be able to reproduce this problem without ever installing IntelliCode by changing to the Microsoft language server after installing the Python extension by setting "python.jediEnabled": false. Can you please file an issue on https://github.com/Microsoft/python-language-server for the broken rename/refactor behavior in the new language server?
You can set the setting "python.jediEnabled": true in order to switch back to the Jedi language server instead of the Microsoft language server, although the Microsoft language server team would like to understand and fix this problem in the new language server as well.
Product and Version [VSCode]: 1.33.0
OS Version [Windows]: Windows 10 (Windows_NT x64 10.0.17763)
IntelliCode Extension Version: 1.1.5
Target Platform or Language: Python
** Installed Extensions**: Python 2019.3.6352; Vim 1.3.0; IntelliCode
Steps to Reproduce / Scenario:
function_to_be_renamed
torenamed_function
(set cursor to function name and pressF2
enter new name and pressEnter
--> Rename works as specified.Enable it and Reload Window
in the dialogIntelliCode Python support requires ...
%APPDATA%\Code
and repeat Step 3: --> Rename happens as expectedConclusion: Something is in
%APPDATA%\Code
installed with IntelliCode preventing python refactoring working in a correct way.MyTestFile.py.txt
IntelliCode-Output.txt
The text was updated successfully, but these errors were encountered: