Closed Kronuz closed 4 years ago
I know this is a really old issue, but this is still happening on v2015.10.27 in ST3
Traceback (most recent call last): File "/opt/sublime_text/sublime_plugin.py", line 240, in on_pre_save callback.on_pre_save(v) File "trailing_spaces in /home/cardonator/.config/sublime-text-3/Installed Packages/TrailingSpaces.sublime-package", line 424, in on_pre_save File "trailing_spaces in /home/cardonator/.config/sublime-text-3/Installed Packages/TrailingSpaces.sublime-package", line 440, in freeze_last_version File "./codecs.py", line 885, in open FileNotFoundError: [Errno 2] No such file or directory: '/home/cardonator/.config/sublime-text-3/Packages/User/Default (Linux).sublime-keymap'
I made a pull request (#126 ). Cross fingers that @jbrooksuk will see this and merge it! 🤞
There is a os.path.isfile
check in the code now so this should be fixed.
For new files being saved,
freeze_last_version
called fromon_pre_save
tries to open a file that is about to be created (but it's not yet there). So theopen()
fails withFileNotFoundError
.