-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
rustup completions don't include completions for Cargo #5596
Comments
|
Exactly. That is the problem. The completions for Cargo are already shipped together with rustup, but not installed, and there is not a simple command to install for the current toolchain. It would be nice if |
Sounds like that would be an issue to file on the rustup repo then, right?
…On Fri, Jun 1, 2018 at 12:18 AM Ricardo Veloso ***@***.***> wrote:
Exactly. That is the problem. The completions for Cargo are shipped
together with rustup, but not installed, and there is not a simple command
to install for the current toolchain. It would be nice if rustup
completions installed completions for Cargo too.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5596 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABY2UWQLZdjgFnCW2Yqa09SEdI-KyrnAks5t4OrQgaJpZM4UUfzA>
.
|
I was just about to report the same issue. Let me add a bit of info I just gathered. I can reproduce it very easily on a clean ubuntu 18.04 VM by doing the following:
It seems related to the output of Additional info: with ubuntu 18.04, fish is at version 2.7.1 and cargo is at version 1.30.0. BTW, @killercup, this is what I was mentioning this weekend in case you're interested. |
I found the issue. It's a problem in fish 2.7.1's completion file for cargo: https://github.com/fish-shell/fish-shell/blob/b680db8ce683db285c750ae5af534c97d08b1b40/share/completions/cargo.fish#L10 It's already been fixed on fish's master: https://github.com/fish-shell/fish-shell/blob/082450b1e711c75f6722bf7d8651cda8f835fd1e/share/completions/cargo.fish#L10 So the workaround is to apply this diff:
to The clean fix would be to wait for the next fish release, I guess. Not a bug in cargo 😃 I am not recommending this issue is closed as this was simply a hijack of the original issue; but for the fish problem, the mystery is cleared 😄 Hope this helps, @max-sixty 😄 |
Closing this as I believe rustup can now update completions as of rust-lang/rustup#1646. |
Rustup completions works fine, but don't include completions for Cargo. The command I used to install:
$ rustup completions zsh > ~/.zfunc/_rustup
I temporarily fixed it by symlinking
~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/zsh/site-functions/_cargo
to~/.zfunc/_cargo
.Using zsh in Fedora 28, Rust 1.26.1.
The text was updated successfully, but these errors were encountered: