quickfix-reflector.vim icon indicating copy to clipboard operation
quickfix-reflector.vim copied to clipboard

E952: Autocommand caused recursive behavior

Open justrajdeep opened this issue 5 years ago • 2 comments

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

justrajdeep avatar Aug 09 '19 17:08 justrajdeep

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.

stefandtw avatar Aug 10 '19 17:08 stefandtw

Thanks, let me check and get back to you.

justrajdeep avatar Aug 12 '19 14:08 justrajdeep