4 ms·
Do you have to be very careful when you save files if you're using that? I can imagine having it start a build that then spews tons of errors just because you s
by userbinator 5y ago
Do you have to be very careful when you save files if you're using that? I can imagine having it start a build that then spews tons of errors just because you saved a file that's only one of many changes you wanted to make, could become irritating more than anything else. Also, what happens when you change a file in the middle of a build that it started?
I can see how it could be helpful, but with the way I write software, that scares me. I save habitually, and not only when I'm actually ready to build the result.
- laerus 5y agoentr comes with an option to interrupt the command in case of files change, by default it will wait for the command to finish.
- ducktective 5y agoYou're looking for a "hold-period" after a change in files are detected before triggering the action. This is called "debounce" in `watchexec` a similar program to `entr`
- morberg 5y agoI have the same workflow as you. It is not that hard to write ‘make test’ when you want to run your tests. I think there’s something I don’t understand about GP:s workflow and needs.