stefandtw / quickfix-reflector.vim

Change code right in the quickfix window
MIT License
340 stars 19 forks source link

E952: Autocommand caused recursive behavior #27

Open justrajdeep opened 5 years ago

justrajdeep commented 5 years ago

Hi

I deleted some entries from my QF window by using :g/<pattern>/d and then deleted one more line using dd.

Then i encountered this error

|| Error detected while processing function
|| <SNR>62_OnWrite[68]
|| <SNR>62_setQfOrLocationList[4]
|| E952: Autocommand caused recursive behavior

Can u please take a look if? Thanks in advance.

PS: I have set autochdir

stefandtw commented 5 years ago

The error seems to occur in that line:

call setqflist(a:entries)

My best guess is there are conflicting autocommands in your Vim setup. Although according to :h autocmd-nested autocmds need to specifically be marked as nested and the only nested autocmd in quickfix-reflector happens when the quickfix buffer is read, not when it's written (which is when your error is happening).

So not really sure where the problem lies. You could try to track down possible conflicts by starting Vim without other plug-ins and making sure the problem does not occur. Then activate more and more of your config until you find the conflicting part.

justrajdeep commented 5 years ago

Thanks, let me check and get back to you.