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

"E174: Command already exists" error when installing/updating plugins with vim-plug? #6

Open
khughitt opened this issue Aug 31, 2020 · 1 comment

Comments

@khughitt
Copy link

When attempting to update or install new plugins using commands like :PlugUpdate with vim-plug, I get the following error:

Error detected while processing nvim/plugged/vim-scroll-barnacle/plugin/scroll_barnacle.vim:
line  352:
E174: Command already exists: add ! to replace it

Line 352 appears to refer to the ScrollbarOn call:

command ScrollbarOn call SBAddScrollbar()

I checked and I couldn't find any other plugins that make use of the same command name. Is it possible that that part of the config is somehow being executed twice?

I also tried running nvim with verbose logging, but it didn't provide any additional information.

Any ideas what the issue could be?

Nvim version

NVIM v0.5.0-589-g91572ddad
Build type: RelWithDebInfo
LuaJIT 2.0.5
Compilation: /usr/bin/cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/keith/.cache/yay/neovim-git/src/build/config -I/home/keith/.cache/yay/neovim-git/src/neovim-git/src -I/usr/include -I/home/keith/.cache/yay/neovim-git/src/build/src/nvim/auto -I/home/keith/.cache/yay/neovim-git/src/build/include
Compiled by keith@titan

Features: +acl +iconv +tui
See ":help feature-compile"
@khughitt
Copy link
Author

khughitt commented Nov 3, 2020

@sslivkoff Any thoughts on what might be causing this? Everything else seems to be working well, but I still run into this error.

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

No branches or pull requests

1 participant