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 errors #386

Closed
maximilianriemensberger opened this issue Dec 10, 2018 · 6 comments
Closed

Zsh completion errors #386

maximilianriemensberger opened this issue Dec 10, 2018 · 6 comments

Comments

@maximilianriemensberger
Copy link

maximilianriemensberger commented Dec 10, 2018

I get the following error when typeing doctl complete and then hit TAB:

_doctl_compute:14: bad math expression: operand expected at `"d"'

Completion activated with

source <(doctl completion zsh)

doctl version (local install, downloaded from github)

doctl version 1.12.2-release
Git commit hash: 74b1791e

zsh version

zsh 5.4.2 (x86_64-ubuntu-linux-gnu)
@eddiezane
Copy link
Contributor

eddiezane commented Dec 18, 2018

Looks like it broke between 1.12.0 and 1.12.1.

Here's a gist of the diff of the generated completion files: https://gist.github.com/eddiezane/eef3923c10d0bd2eb77ee0d4c0952702

@eddiezane
Copy link
Contributor

Seems similar to this helm/helm#5046

@eddiezane
Copy link
Contributor

The proposed fix doesn't work for me.

Error is now:

~ doctl compute _doctl_compute:14: bad math expression: operand expected at `/usr/share...'

@hilary
Copy link
Contributor

hilary commented Dec 19, 2018

I'm knee deep in getting the snap working again in https://github.com/digitalocean/doctl/tree/hholz/fix-snap-build. The snapcraft.yml in that branch will snap install 1.12.2 under strict confinement, however, I haven't folded the docker ssh logic into it yet.

Once I have the snap install working again, I'm happy to tackle the zsh completion question.

@eddiezane
Copy link
Contributor

@maximilianriemensberger I just opened PR #403 with a patch that models our completion after kubectl's. Would you please test if you get a chance?

@maximilianriemensberger
Copy link
Author

@eddiezane Works for me. Thanks.

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

3 participants