-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vim double-triggers bacon v2.21.0 when saving a file #222
Comments
It looks like the problem you have is related to the write strategy of your vim installation. You should be able to fix this by adding this in you (n)vim config:
|
This is not really a vim-specific problem, many editors write backup files. Just a quick test with some editors (default configurations):
which I agree with and which is probably why the other editors behave this way as well. |
All those saves happen in less than 1 ms, right ? I wonder if this couldn't be solved with
|
When saving a file in vim (or neovim), vim will write to multiple files in the directory of the saved file. Here is a log for saving
src/main.rs
in neovim:(Note that this doesn’t happen on
tmpfs
filesystems, there neovim directly writes the file. I can reproduce the shown behaviour onbtrfs
andext4
; I don’t have any other filesystems at hand.)This means that with the new default for
on_change_strategy
introduced in #207, each save will run the current job (e. g. running the tests) twice. The old behaviour works well, so feel free to ignore this issue, but it might be nice to avoid retriggering anything in this situation (maybe by adding a timeout of a couple milliseconds?).The text was updated successfully, but these errors were encountered: