vishr / local-history

A Sublime Text 2/3 plugin for maintaining local history of files. [backup | open | compare | incremental diff]
http://vishr.com/local-history
MIT License
228 stars 21 forks source link

Replacement doesn't work #75

Open Kristinita opened 8 years ago

Kristinita commented 8 years ago

Hello. Windows 10, Sublime Text 3 Build 3114. I want to replace my working file with the file in the Local History folder. In my file Right mouse click → Local HistoryReplace, but changes nothing, but changes nothing. Traceback:

Traceback (most recent call last):
  File "LocalHistory in E:\Sublime Text 3\Data\Installed Packages\Local History.sublime-package", line 232, in on_done
  File "./python3.3/encodings/cp1251.py", line 23, in decode
UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 20626: character maps to <undefined>

What do I have to make to carry out replacement? Thanks.

jrappen commented 8 years ago

@Kristinita please see if the latest updates resolve your issue, Package Control should update within the next hour or so.

Kristinita commented 8 years ago

@jrappen, unfortunately, replacement is not performed.

command: history_replace
Traceback (most recent call last):
  File "LocalHistory in E:\Sublime Text 3 Portable For Tests\Data\Installed Packages\Local History.sublime-package", line 241, in on_done
  File "E:\Sublime Text 3 Portable For Tests\sublime.py", line 710, in replace
    raise ValueError("Edit objects may not be used after the TextCommand's run method has returned")
ValueError: Edit objects may not be used after the TextCommand's run method has returned
Kristinita commented 7 years ago

@jrappen , actually in Build 3126

Traceback (most recent call last):
  File "LocalHistory in E:\Sublime Text Build 3126 For Debug\Data\Installed Packages\Local History.sublime-package", line 241, in on_done
  File "E:\Sublime Text Build 3126 For Debug\sublime.py", line 821, in replace
    raise ValueError("Edit objects may not be used after the TextCommand's run method has returned")
ValueError: Edit objects may not be used after the TextCommand's run method has returned

Thanks.