Skip to content

Bash completion directory is missing after updating the stable toolchain to 1.71.0 #3407

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
tristan957 opened this issue Jul 14, 2023 · 5 comments
Labels

Comments

@tristan957
Copy link

tristan957 commented Jul 14, 2023

Problem

When launching a terminal, I am now seeing the following error:

/home/tristan957/.local/share/bash-completion/completions/cargo: line 2: /home/tristan957/.local/share/rustup/toolchains/stable-x86_64-unknown-linux-gnu/etc/bash_completion.d/cargo: No such file or directory
 $ echo $RUSTUP_HOME
/home/tristan957/.local/share/rustup

I am not entirely sure how this might've happened or if I am the only one experiencing this issue. The 1.70 toolchain that I have installed still has the bash completion files.

Steps

I just updated from 1.70 to 1.71, and this started happening.

Possible Solution(s)

No response

Notes

No response

Rustup version

rustup 1.26.0 (5af9b9484 2023-04-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.71.0 (8ede3aae2 2023-07-12)`

Installed toolchains

$ rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/tristan957/.local/share/rustup

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu (default)
1.70.0-x86_64-unknown-linux-gnu

active toolchain
----------------

stable-x86_64-unknown-linux-gnu (default)
rustc 1.71.0 (8ede3aae2 2023-07-12)
@ehuss
Copy link
Contributor

ehuss commented Jul 14, 2023

Thanks for the report! This seems to have been a regression that was fixed a few days ago, but wasn't backported. I have followed up on rust-lang/rust#113579 to propose getting it backported.

@tristan957
Copy link
Author

@ehuss thanks for getting back to me. I hope to see a backport!

@iwanders
Copy link

I've been using this as a workaround:

source  ~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/src/etc/bash_completion.d/cargo

@mcint
Copy link

mcint commented Aug 8, 2023

This is fixed as of 1.71.1. Thanks! This was bugging me since I set up my new laptop. Nixpkg installation of rustup that I hadn't written a local patch for.

@tristan957
Copy link
Author

Can confirm.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants