python-rope/ropevim

RopeMoveCurrentModule fails when reloading file

phubaba opened this issue · 1 comments

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.

This seems related to #77