-
Hi, as the title says, when I run bun in watch mode on linux, I am getting the error When running on macos however, I am not seeing this at all, it just works. Any ideas? The command is {
"name": "site",
"main": "index.js",
"devDependencies": {
"@types/bun": "latest"
},
"dependencies": {
"fzf": "^0.5.2",
"lit-html": "^3.2.1"
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I'm actually wondering if this is related to saving the file in vim and how vim flushes files to disk... |
Beta Was this translation helpful? Give feedback.
-
This is due to the file write handling of Vim. See :help 'backupcopy' for an explanation. Editors like Vim replace the original file with a temporary backup to avoid losing the file contents completely. This is also an issue when watching the file for changes via inotifywait (see here). A workaround for that is to |
Beta Was this translation helpful? Give feedback.
I forgot to come back, this is directly related to: #2987 (comment)
in vim, setting
set noswapfile
fixed it, as i believe that makes vim just write it to disk instead of doing a dance with touching the file multiple times