Way to retry rust-src download?
See original GitHub issueI’ve found that I often have trouble downloading data from static.rust-lang.org
from my computer; regardless of the tool I’m using (curl
, rustup
, etc) I receive a “couldn’t resolve host name” error.
I don’t really know what causes this, but I’m typically able to resolve the issue by re-trying the download a couple times.
Sure enough, upon installing IntelliJ-Rust and opening a project, I got an error:
Failed to download standard library: rustup failed: `info: downloading component 'rust-src' error: component download failed for rust-src info: caused by: could not download file from 'https://static.rust-lang.org/dist/2017-03-11/rust-src-1.16.0.tar.gz' to 'C:\Users\<myname>\.rustup\tmp\7nbosxi96hsnu9ot_file info: caused by: error during download info: caused by: [6] Couldn't resolve host name (Couldn't resolve host 'static.rust-lang.org')
I used “Invalidate Caches/Restart” to force the IDE to re-try the download; this failed once in the same way, then on the second invalidate/restart, the download was successful.
Is there an easier way to re-try a source-library download?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
FAQ - The rustup book
Can rustup download the Rust source code? The source for Rust's standard library can be obtained by running rustup component add rust-src ....
Read more >How To Update Rust On Windows - TURRETA
It is very easy to update Rust on Windows to the latest version. You could install either the stable or nightly release and...
Read more >Rustup: Downloading rust-src fails
Does anyone know how to fix this? .cargo/bin/rustup component add rust-src info: downloading component 'rust-src' 26.4 MiB / 26.4 MiB (100 ...
Read more >Setting up a Rust Development Environment - Hoverbear
In this post we'll be discussing one way to set up your machine for Rust ... rustup component add rust-src rustup component add...
Read more >In IntelliJ IDEA on Gentoo, how do I attach the rust stdlib ...
Please uninstall first error: if this is what you want, restart the ... rustup component add rust-src info: downloading component 'rust-src' ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep, if the field is filled with some path that means that everything is OK.
In my case, click to refresh and succeed getting rust stdlib