adb-atomic-developer-bundle icon indicating copy to clipboard operation
adb-atomic-developer-bundle copied to clipboard

Having tempory files like .#vagrantfile# or #vagrantfile# we fail VM startup during /vagrant sync

Open maxandersen opened this issue 9 years ago • 3 comments

seems rsync on windows fails if you have files like #Vagrantfile# which vi leaves behind.

desktop-738r19v

can we not guard against this since things are not working after this and I have to manually remove the file and reprovision afaics.

maxandersen avatar Mar 04 '16 23:03 maxandersen

@maxandersen vim by default have back file option set iirc. if you unset it from vimrc then it will not save any backup file or even better you can change the path to those temp file.

Change in vimrc file

set backupdir=~/vimtmp,.
set directory=~/vimtmp,.

praveenkumar avatar Mar 14 '16 04:03 praveenkumar

Yes, I know I can turn it off in vim, but that doesn't help the users that ends up in this situation.

maxandersen avatar Mar 15 '16 09:03 maxandersen

Not sure there is much we can do tbh. I think the best option is still to disable the /vagrant synced folder or at least not force it to rsync - https://github.com/projectatomic/adb-atomic-developer-bundle/issues/272

hferentschik avatar Mar 24 '16 09:03 hferentschik