atomantic / dotfiles

🖥️ Automated Configuration, Preferences and Software Installation for macOS
ISC License
1.33k stars 456 forks source link

VIM plugins stage takes three hours or more #85

Open dheerajchand opened 2 years ago

dheerajchand commented 2 years ago

Hi,

I have been on the "install vim plugins" stage for three hours on a reasonably fast connection. Is this expected behaviour? Is it possible to add output to the process so I can what it's doing, if it's falling, etc.?

 ~  ping www.google.com                                   ✔  2938  12:23:21
PING www.google.com (142.251.45.68): 56 data bytes
64 bytes from 142.251.45.68: icmp_seq=0 ttl=115 time=15.320 ms
64 bytes from 142.251.45.68: icmp_seq=1 ttl=115 time=20.752 ms
64 bytes from 142.251.45.68: icmp_seq=2 ttl=115 time=11.674 ms
^C
--- www.google.com ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 11.674/15.915/20.752/3.730 ms
atomantic commented 2 years ago

definitely should not take very long at all. Try just running this: vim +PluginInstall +qall, just removing the output redirection here: https://github.com/atomantic/dotfiles/blob/main/install.sh#L272

dheerajchand commented 2 years ago

To be clear, I run that command from the same directory in which install.sh lives, T/F?

atomantic commented 2 years ago

should be able to run that vim command from anywhere

dheerajchand commented 2 years ago

Is this expected behaviour?

~  vim +PluginInstall +qall  ✔  2945  12:49:35 Error detected while processing /Users/dheerajchand/.dotfiles/homedir/.vim/bundle/vim-fugitive/plugin/fugitive.vim: line 470: E1208: -complete used without allowing argumentsline 471: E1208: -complete used without allowing argumentsline 475: E1208: -complete used without allowing argumentsline 478: E1208: -complete used without allowing argumentsError detected while processing /Users/dheerajchand/.dotfiles/homedir/.vim/bundle/vim-esformatter/plugin/esformatter.vim: line 111: E1208: -complete used without allowing argumentsline 112: E1208: -complete used without allowing argumentsPress ENTER or type command to continue

atomantic commented 2 years ago

What do you get with vim +PluginList? I've updated my plugins and they appear to be ok on my end.... You could try commenting out some of these plugin lines to see if it's something particular with particular plugins like vim-fugitive: https://github.com/atomantic/dotfiles/blob/main/homedir/.vimrc#L34

dheerajchand commented 2 years ago

Error detected while processing /Users/dheerajchand/.dotfiles/homedir/.vim/bundle/vim-fugitive/plugin/fugitive.vim:
line  470: E1208: -complete used without allowing argumentsline  471: E1208: -complete used without allowing argumentsline  475: E1208: -complete used without allowing argumentsline  478: E1208: -complete used without allowing argumentsError detected while processing /Users/dheerajchand/.dotfiles/homedir/.vim/bundle/vim-esformatter/plugin/esformatter.vim:
line  111: E1208: -complete used without allowing argumentsline  112: E1208: -complete used without allowing argumentsPress ENTER or type command to continue```
<img width="942" alt="Screen Shot 2022-04-04 at 12 14 34 PM" src="https://user-images.githubusercontent.com/482844/161596661-eab81b9f-656e-4a4f-b3ae-16d5bb14be71.png">
atomantic commented 2 years ago

maybe try changing the .vimrc to remove Fugitive and then do: vim +PluginClean -- seems something is wrong with Fugitive...

atomantic commented 2 years ago

looks like this error is identified as out of date fugitive: https://github.com/tpope/vim-fugitive/issues/1848

Maybe try force-killing vim-fugitive and reinstall:

rm -rf ~/.vim/bundle/vim-fugitive
vim +PluginInstall +qall