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

zsh completion is broken #3753

Closed
monester opened this issue Nov 22, 2019 · 9 comments
Closed

zsh completion is broken #3753

monester opened this issue Nov 22, 2019 · 9 comments
Assignees
Labels

Comments

@monester
Copy link

Bug Report

zsh completion is failing with error:

_arguments:comparguments:325: invalid option definition: (-l --linkerd-namespace)-l[Namespace in which Linkerd is installed [$LINKERD_NAMESPACE]]:

It is happening because [$LINKERD_NAMESPACE] is not escaped.

What is the issue?

Unable to use autocompletion for linkerd in zsh

How can it be reproduced?

Install zsh, add completion by running source <(linkerd completion zsh), try autocomple any linkerd command

Logs, error output, etc

None

linkerd check output

Not related

Environment

  • Linkerd version: Client version: edge-19.11.3
  • Zsh version: zsh 5.7.1 (x86_64-redhat-linux-gnu)

Possible solution

There is PR opened in cobra package to fix issue - https://github.com/spf13/cobra/pull/899/files but not yet merged.

Additional context

@stale
Copy link

stale bot commented Feb 20, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Feb 20, 2020
@grampelberg
Copy link
Contributor

Looks like we're still waiting on the upstream PR to merge.

@stale stale bot removed the wontfix label Feb 20, 2020
@stale
Copy link

stale bot commented May 20, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label May 20, 2020
@olix0r
Copy link
Member

olix0r commented May 21, 2020

Given the state of spf13/cobra#899, should we consider cobra abandoned?

Can we pull in a fix without cobra? Or should we plan to move off of it?

@stale stale bot removed the wontfix label May 21, 2020
@vkudryk
Copy link

vkudryk commented Jun 18, 2020

Any updates on it?

@grampelberg
Copy link
Contributor

@vkudrik see upstream issue.

@olix0r
Copy link
Member

olix0r commented Jun 18, 2020

It looks like k3d recently resolved a similar issue. I wonder if we can take whatever approach they did.

elementalvoid added a commit to elementalvoid/dotfiles that referenced this issue Aug 19, 2020
@alpeb alpeb self-assigned this Sep 18, 2020
@alpeb
Copy link
Member

alpeb commented Sep 18, 2020

Update: we have updated to cobra 1.0.0 recently (to add fish completion), but that still doesn't have the zsh completion fix. They did fix that in their master branch afterwards but they haven't cut a release including it (last release was in April 🤷‍♂️ )

@alpeb
Copy link
Member

alpeb commented Sep 22, 2020

Duplicate of #3999

@alpeb alpeb marked this as a duplicate of #3999 Sep 22, 2020
@alpeb alpeb closed this as completed Sep 22, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants