Closed sdawans closed 8 years ago
OK - problem solved.
It turns out I'm using SublimeText3, not 2, which provides an option called atomic_save
to save files going through temporary files. So, all I had to do was add this line to the user options:
"atomic_save": false
Don't know how I missed this page the first time around:
http://stackoverflow.com/questions/20634684/what-is-sublime-text-doing-when-i-save-a-file
Hi. Great tool, keep up the good work!
This is very similar to #25, but concerns SublimeText2.
When I started using sphinx-autobuild with ST2, I was getting a large amount of builds, partly due to .TMP files being generated by Sublime.
Saving with ST2
These are straightforward to suppress using the
--ignore *.tmp
option. However, as you can see from the following output, there are still 2 unneccessary builds.Saving with ST2 and --ignore *.tmp
I know nothing of how Sublime handles files, but I clearly don't have this issue with notepad++.
Saving with Notepad++
I suspect that it's not enough to ignore those temporary files since they probably replace the saved file multiple times during the saving process.
A general workaround for this kind of problem could be to add an option to ignore saves of a file repeated within a certain time interval (~2 seconds or so). I can look into that kind of fix, just wondering if anyone here knows enough about SublimeText2 to be able to disactivate this.