Skip to content

ZSH completions don't work #7357

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

Closed
burjui opened this issue Sep 12, 2019 · 4 comments
Closed

ZSH completions don't work #7357

burjui opened this issue Sep 12, 2019 · 4 comments
Labels
C-bug Category: bug

Comments

@burjui
Copy link

burjui commented Sep 12, 2019

Problem
ZSH completions for Cargo provided by rustup don't work. Completions for rustup work fine though.
Corresponding rustup issue

Steps

mkdir ~/.zfunc
rustup completions zsh cargo > ~/.zfunc/_cargo
rustup completions zsh > ~/.zfunc/_rustup
fpath+=~/.zfunc
compinit

Notes

$ cargo version
cargo 1.37.0 (9edd08916 2019-08-02)

$rustup --version
rustup 1.18.3 (435397f48 2019-05-22)
@burjui burjui added the C-bug Category: bug label Sep 12, 2019
@Eh2406
Copy link
Contributor

Eh2406 commented Sep 14, 2019

Looks to me (as a windows based lifeform) like they have had some work done recently, see #7296. Can you reproduce on a recent nightly toolchain?

@ehuss
Copy link
Contributor

ehuss commented Sep 14, 2019

Oh, I should have cc'd here, I left a comment on the rustup issue. I think it is due to the way rustup generates the completion, and isn't affected by the recent updates.

@burjui
Copy link
Author

burjui commented Sep 15, 2019

@ehuss I just checked your response on the rustup issue, and indeed, it works the way you did it. So it's clearly not a Cargo issue.

@burjui burjui closed this as completed Sep 15, 2019
@sgtz
Copy link

sgtz commented Jan 12, 2023

_cargo and _rustup completions stopped working for me while others were okay. Since zsh completions create a .zcompdump cache file, removing .zcompdump and allowing it to be regenerated got completions working again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

4 participants