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

Syntax error when attempt ZSH completion for ValueEnum variants #4053

Open
2 tasks done
KSXGitHub opened this issue Aug 10, 2022 · 0 comments
Open
2 tasks done

Syntax error when attempt ZSH completion for ValueEnum variants #4053

KSXGitHub opened this issue Aug 10, 2022 · 0 comments
Labels
A-completion Area: completion generator C-bug Category: Updating dependencies E-easy Call for participation: Experience needed to fix: Easy / not much

Comments

@KSXGitHub
Copy link

KSXGitHub commented Aug 10, 2022

Notes

This bug is very specific to my application that I haven't managed to create a minimal reproducible code yet. So instead, I'll be providing links to my application.

Please complete the following tasks

Rust Version

1.62.1

Clap Version

3.2.16

Minimal reproducible code

N/A

Steps to reproduce

  1. Create an executable at /usr/bin/pdu. Or alternatively, install pdu.
  2. Download and install the zsh completions for pdu at /usr/share/zsh/site-functions/_pdu (this file was generated by ./generate-completion.sh).
  3. Open ZSH login shell, type pdu --bytes-format= and then press Tab.

Actual Behaviour

The following error appears:

(eval):2: unmatched "
_arguments:465: command not found: (
(eval):2: unmatched "
_arguments:465: command not found: (
(eval):2: unmatched "
_arguments:465: command not found: (

Expected Behaviour

A completion menu of plain, metric, and binary should appear to let user choose.

Additional Context

If you have an Arch Linux machine, you can also install the AUR package (bin version).

Debug Output

No response

@KSXGitHub KSXGitHub added the C-bug Category: Updating dependencies label Aug 10, 2022
@epage epage added A-completion Area: completion generator E-easy Call for participation: Experience needed to fix: Easy / not much labels Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-completion Area: completion generator C-bug Category: Updating dependencies E-easy Call for participation: Experience needed to fix: Easy / not much
Projects
None yet
Development

No branches or pull requests

2 participants