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

[bug] fish shell completion throw error #272

Closed
sunny0826 opened this issue Mar 28, 2022 · 2 comments
Closed

[bug] fish shell completion throw error #272

sunny0826 opened this issue Mar 28, 2022 · 2 comments
Assignees
Labels
good first issue Good for newcomers help wanted Extra attention is needed kind/bug Something isn't working

Comments

@sunny0826
Copy link
Owner

@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)

@sunny0826 sunny0826 self-assigned this Mar 28, 2022
@sunny0826 sunny0826 added kind/bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Mar 28, 2022
sunny0826 added a commit that referenced this issue Apr 15, 2022
@sunny0826
Copy link
Owner Author

@interpeix This issue has been fixed in 0.16.4, can you help to verify that I don't have a filsh environment locally?

@interpeix
Copy link

@sunny0826 awesome! Totally fixed, thanks for the support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants