Get rid of random "read failed" errors while using Vim & Brunch
If you encounter the following error from time to time, which prevents changes to be populated to public
directory:
Reading of 'app/views/foo/bar' failed. ENOENT, open 'app/views/foo/bar'
You're probably running into a race condition described here, related to Vim writebackup
function.
Vim is by default making a backup before overwriting a file with buffer contents. It sometimes confuses chokidar (which Brunch uses for file watching). If you are tired of having to restart brunch server and can live without this feature:
:set nowritebackup
Written by Artur Nowak
Related protips
1 Response
Thanks! This has saved me a lot of time!
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Brunch
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#