fzf.fish: errors at installation time. `complete: Too many arguments`
Before proceeding…
- [ x] My CLIs meet the minimum version requirements
- [ x] I have read through the troubleshooting guide
- [x ] If I updated fzf.fish for the first time in over 6 months, I read the migration guides to make sure I’m caught up.
Describe the bug
At installation time I get a lot of errors about the use of fish’s complete
function
Steps to reproduce
Environment
Versions installed:
- fish, version 3.3.1
- fzf.fish: 8.0.1
- fisher, version 4.3.1
- terminal: Konsole Version 21.08.1
- OS: Ubuntu 21.10
Additional context
Here are the errors:
complete: Too many arguments
~/.config/fish/completions/fzf_configure_bindings.fish (line 1):
complete fzf_configure_bindings --no-files
^
from sourcing file ~/.config/fish/completions/fzf_configure_bindings.fish
called on line 176 of file ~/.config/fish/functions/fisher.fish
in function 'fisher' with arguments 'install PatrickF1/fzf.fish'
(Type 'help complete' for related documentation)
complete: Too many arguments
~/.config/fish/completions/fzf_configure_bindings.fish (line 2):
complete fzf_configure_bindings --long help --short h --description "Print help"
^
from sourcing file ~/.config/fish/completions/fzf_configure_bindings.fish
called on line 176 of file ~/.config/fish/functions/fisher.fish
in function 'fisher' with arguments 'install PatrickF1/fzf.fish'
(Type 'help complete' for related documentation)
complete: Too many arguments
~/.config/fish/completions/fzf_configure_bindings.fish (line 3):
complete fzf_configure_bindings --long directory --description "Change the key binding for searching directory"
^
from sourcing file ~/.config/fish/completions/fzf_configure_bindings.fish
called on line 176 of file ~/.config/fish/functions/fisher.fish
in function 'fisher' with arguments 'install PatrickF1/fzf.fish'
(Type 'help complete' for related documentation)
complete: Too many arguments
~/.config/fish/completions/fzf_configure_bindings.fish (line 4):
complete fzf_configure_bindings --long git_log --description "Change the key binding for searching git log"
^
from sourcing file ~/.config/fish/completions/fzf_configure_bindings.fish
called on line 176 of file ~/.config/fish/functions/fisher.fish
in function 'fisher' with arguments 'install PatrickF1/fzf.fish'
(Type 'help complete' for related documentation)
complete: Too many arguments
~/.config/fish/completions/fzf_configure_bindings.fish (line 5):
complete fzf_configure_bindings --long git_status --description "Change the key binding for searching git status"
^
from sourcing file ~/.config/fish/completions/fzf_configure_bindings.fish
called on line 176 of file ~/.config/fish/functions/fisher.fish
in function 'fisher' with arguments 'install PatrickF1/fzf.fish'
(Type 'help complete' for related documentation)
complete: Too many arguments
~/.config/fish/completions/fzf_configure_bindings.fish (line 6):
complete fzf_configure_bindings --long history --description "Change the key binding for searching history"
^
from sourcing file ~/.config/fish/completions/fzf_configure_bindings.fish
called on line 176 of file ~/.config/fish/functions/fisher.fish
in function 'fisher' with arguments 'install PatrickF1/fzf.fish'
(Type 'help complete' for related documentation)
complete: Too many arguments
~/.config/fish/completions/fzf_configure_bindings.fish (line 7):
complete fzf_configure_bindings --long variables --description "Change the key binding for searching variables"
^
from sourcing file ~/.config/fish/completions/fzf_configure_bindings.fish
called on line 176 of file ~/.config/fish/functions/fisher.fish
in function 'fisher' with arguments 'install PatrickF1/fzf.fish'
(Type 'help complete' for related documentation)
Installed 1 plugin/s
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (10 by maintainers)
Commits related to this issue
- [Bug template] explain how to check versions, ask for config variables Checking fish version is non-obvious as evidenced in https://github.com/PatrickF1/fzf.fish/issues/226. Configuration variables ... — committed to PatrickF1/fzf.fish by PatrickF1 2 years ago
- [Bug template] explain how to check versions, ask for config variables Checking fish version is non-obvious as evidenced in https://github.com/PatrickF1/fzf.fish/issues/226. Configuration variables ... — committed to PatrickF1/fzf.fish by PatrickF1 2 years ago
Just confirmed. My $SHELL Variable points to /usr/bin/fish. But in my $PATH
/home/linuxbrew/.linuxbrew/bin
is in front of/usr/bin
, which means it has a higher priority. I think this explains the behavior perfectly.Thanks for the response @PatrickF1, completely missed that information on the README 😅.