question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Way to retry rust-src download?

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
matkladcommented, Apr 10, 2017

Yep, if the field is filled with some path that means that everything is OK.

0reactions
weamingcommented, Mar 10, 2021

new_settings

Download stdlib should handle this.

Thanks for the report!

In my case, click to refresh and succeed getting rust stdlib

image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found