nerdtree icon indicating copy to clipboard operation
nerdtree copied to clipboard

NERDTreeMirror on tabs multiple spews E38: Null argument errors

Open bcarpio opened this issue 3 years ago • 2 comments

Macvim version (macvim-v)

VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Jul 25 2022 07:38:38)
macOS version - x86_64
Included patches: 1-65

Terminal name/version

iterm2

VIMRC (.vimrc)

https://github.com/bcarpio/vim/blob/master/.vimrc

State Your Question

I recently installed COC (https://github.com/neoclide/coc.nvim) and when I have a single file open everything works perfect however once I open a second file in a second tab vim spews E38 errors.

When I type :messages I get the following

Error detected while processing function nerdtree#ui_glue#invokeKeyMap[1]..86[33]..85[3]..<SNR>52_openInNewTab[2]..187[6]..188[17]..23[3]..BufWinEnter Autocommands for "*"..function 202[2]..203[36]..nerdtree#echo:
line    1:
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
E38: Null argument
'redrawtime' exceeded, syntax highlighting disabled

I googled around for some answer to the redrawtime exceeded many posts said to brew reinstall source-highlight so I tried that, didn't fix the issue.

The only thing that fixes the issue is if I comment out this line autocmd BufWinEnter * NERDTreeMirror in my .vimrc. If I comment this out new tabs spawn just fine but don't have the NERDTree in the second tab.

I've tried both autocmd BufWinEnter * NERDTreeMirror & autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif but both have the same issue.

bcarpio avatar Aug 04 '22 22:08 bcarpio

For whatever its worth I just setup the same VIM configuration on my WSL Ubuntu Windows 11 setup and I cannot reproduce the issue there. I even deleted everything under ~/.vim/bundle on my mac and reinstalled all my plugins but I still get this error when auto opening NERDTree on subsequent tabs.

bcarpio avatar Aug 07 '22 15:08 bcarpio

I have the same problem, vim is unusable..

borissov avatar Aug 16 '22 12:08 borissov