[bug] fish shell completion throw error #272
Labels
good first issue
Good for newcomers
help wanted
Extra attention is needed
kind/bug
Something isn't working
@sunny0826 Tested and still having the issue.
Builded using a clean Linux env and a fresh fish installation:
`vscode@a71fb1df192a /w/kubecm (dependabot/go_modules/github.com/spf13/cobra-1.4.0)> ./kubecm math: Error: Unexpected tokenish/completions/kubecm.fish
'ompletion ended with directive: ShellCompDirectiveNoFileComp / 1'
^
math: Error: Unexpected token
'% 2'
^
test: Missing argument at index 2
~/.config/fish/completions/kubecm.fish (line 93):
if test $compErr -eq 1
^
in function '__kubecm_prepare_completions'
in command substitution
(Type 'help test' for related documentation)
math: Error: Unexpected token
'ompletion ended with directive: ShellCompDirectiveNoFileComp / 8'
^
math: Error: Unexpected token
'% 2'
^
math: Error: Unexpected token
'ompletion ended with directive: ShellCompDirectiveNoFileComp / 16'
^
math: Error: Unexpected token
'% 2'
^
test: Missing argument at index 2
~/.config/fish/completions/kubecm.fish (line 101):
if test $filefilter -eq 1; or test $dirfilter -eq 1
^
in function '__kubecm_prepare_completions'
in command substitution
(Type 'help test' for related documentation)
test: Missing argument at index 2
~/.config/fish/completions/kubecm.fish (line 101):
if test $filefilter -eq 1; or test $dirfilter -eq 1
^
in function '__kubecm_prepare_completions'
in command substitution
(Type 'help test' for related documentation)
math: Error: Unexpected token
'ompletion ended with directive: ShellCompDirectiveNoFileComp / 2'
^
math: Error: Unexpected token
'% 2'
^
math: Error: Unexpected token
'ompletion ended with directive: ShellCompDirectiveNoFileComp / 4'
^
math: Error: Unexpected token
'% 2'
^
test: Missing argument at index 2
~/.config/fish/completions/kubecm.fish (line 117):
if test $nospace -ne 0; or test $nofiles -eq 0
^
in function '__kubecm_prepare_completions'
in command substitution
(Type 'help test' for related documentation)
test: Missing argument at index 2
~/.config/fish/completions/kubecm.fish (line 117):
if test $nospace -ne 0; or test $nofiles -eq 0
^
in function '__kubecm_prepare_completions'
in command substitution
(Type 'help test' for related documentation)`
The same results using MacOs
Originally posted by @interpeix in #76 (comment)
The text was updated successfully, but these errors were encountered: