microsoft/python-language-server

Rename symbol on imports either returns "no result", or overwrites the word "def" on source file

crimsonhawk47 opened this issue · 0 comments

Environment data

  • Language Server version: 0.5.51.0
  • OS and version: Mac OS Catalina 10.15.5
  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.3, 3.7.3, 2.7.16

Expected behaviour 1

Renaming imported function should rename that function in all files
Screen Shot 2020-07-07 at 12 18 58 PM

Screen Shot 2020-07-07 at 12 20 48 PM

Actual behaviour 1

An error pops up simply saying "No Result". The function is not renamed.

Screen Shot 2020-07-07 at 12 19 22 PM

Expected behaviour 2

Renaming a module, such as renaming the test part of "modules.test", should update that file name as well as the symbol
Screen Shot 2020-07-07 at 12 24 17 PM

Screen Shot 2020-07-07 at 12 25 54 PM

Screen Shot 2020-07-07 at 12 25 12 PM

Actual behaviour 2

The file is not renamed. For whatever reason, whatever name the user types into the input box is actually appended onto the "def" keyword in the function definition.
Screen Shot 2020-07-07 at 12 26 37 PM

Screen Shot 2020-07-07 at 12 26 17 PM

Additional Info

This happens regardless of being in a virtualenv, or what virtualenv I'm running.