-
Notifications
You must be signed in to change notification settings - Fork 82
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
Error detected while processing BufWritePre Autocommands for "*"..function <SNR>23_StripWhitespaceOnSave #160
Comments
Hi @asgeo1, can you give details of your platform, vim version, plugin manager, etc? Seeing the error and when it happens I think it could be your |
I get this same error. I thought I first saw it after upgrading to Neovim nightly. But I also just tried it and reproduced it with versions 0.7.2, 0.8.0 and 0.8.1. I'm using a Mac and Packer as my plugin manager. Here's some info about my current Neovim version:
|
Does the error disappear if you set |
Yes, setting Here's the output of those commands:
|
I had this plugin turned off (at least in terms of automatically removing whitespace on save). Based on the following issue, it's now working as long as I remove all whitespace instead of just on changed lines. Not ideal, but I think it'll be good enough for now. See: ntpeters/vim-better-whitespace#160 (comment)
If I replace Apple diff with GNU diffutils ( |
yes so this is the same as #159. If you use GNU diff ( |
Apple's diff util appears to have changed recently and broken what vim-better-whitespace is expecting. This changes to use GNU diffutils to work around the problem. See: ntpeters/vim-better-whitespace#160
I'm getting this error when saving a file in Vim:
I think about 2 weeks ago, I updated my plugins and everything was fine. And today I've updated them again, and now I get this error. It's weird, because looking at this repo, it doesn't look like anything has changed.
I've tried to isolate the issue by removing every plugin (other than vim-better-whitespace), and pretty much commenting out my entire Vim setup, other than packer.
I still get the same error, which is really weird. Any ideas?
This is how I am using this plugin in my packer setup:
The text was updated successfully, but these errors were encountered: