Last Updated: February 25, 2016
·
630
· anowak

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

1 Response
Add your response

Thanks! This has saved me a lot of time!

over 1 year ago ·