Skip to content
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

NERDTreeMirror on tabs multiple spews E38: Null argument errors #1318

Open
bcarpio opened this issue Aug 4, 2022 · 2 comments
Open

NERDTreeMirror on tabs multiple spews E38: Null argument errors #1318

bcarpio opened this issue Aug 4, 2022 · 2 comments

Comments

@bcarpio
Copy link

bcarpio commented Aug 4, 2022

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
Copy link
Author

bcarpio commented Aug 7, 2022

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.

@borissov
Copy link

I have the same problem, vim is unusable..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants