python-rope / ropevim

vim mode that uses rope library to provide features like python refactorings and code-assists
GNU General Public License v2.0
245 stars 34 forks source link

RopeMoveCurrentModule fails when reloading file #88

Closed phubaba closed 1 year ago

phubaba commented 2 years ago

During RopeMoveCurrentModule, ropevim.py reload_files is called and subsequently dies if self.filename() is in moves because find_file checks to see if self.filename() exists and of course it doesnt since it has been moved.

initial = self.filename() .... if initial: self.find_file(initial)

one option is to catch exceptions or another option is to extend the if statement to if initial and initial not in moves.

eivindjahren commented 1 year ago

This seems related to #77