Sublime Forum

Random autosave-like behavior

#1

I started experiencing this recently. I have all autosave-like settings disabled. But whenever I type letters like “E” or “T”, the console shows “Writing file” and all post-save hooks kick in (like trimming white spaces, or parsing a config file).

You can see this in action in the screenshot below. I started modifying the value of a setting, the file got randomly saved and the config parsing triggered. The interesting thing is that the tab keeps showing the file as un-saved.

This is happening in both the nightly build and stable build. I have also disabled the Git package “save_first” logic.


0 Likes

#2

I found that the culprit was the RubyTest package and it’s “save_on_run” option:

{ “keys”: “super+shift+r”], “command”: “run_single_ruby_test” }, // single test
{ “keys”: “super+shift+t”], “command”: “run_all_ruby_test” }, // test file
{ “keys”: “super+shift+e”], “command”: “run_last_ruby_test” }, // test file

]

What’s confusing is that I wasn’t pressing the super+shift keys. So either I have stuck keys (which I doubt), or there is a bug in the plugin framework or their code.

0 Likes