Skip to content

Add progress indication for Updating crates.io index #15767

@RunDevelopment

Description

@RunDevelopment

Hello! I recently opened a Rust workspace, and Rust Analyzer just did something for 10 minutes. There was no progress indication, just a "Fetching" (or was it "Fetching index") with a spinner. No 1/X, no x% done, no logs (in VSCode > Tasks > RA).

Since I had no idea what it was doing (what does "Fetching index" mean?), I opened Task manager and killed its cargo progress. For all that I knew, cargo could have been stuck in an infinite loop of some kind. After I did that, RA complained, logging that some cargo command failed to execute, and restarted cargo. And there I was back to waiting, with no progress indication, still having no idea what it was doing.

So what happened? Cargo was Updating crates.io index. It was resolving/downloading 90k deltas since I hadn't used that version of Rust for a while (I have multiple rust tool chains installed), and that took some time. Around 20 minutes. Even on my more commonly-used tool chains, updating the index regularly takes multiple seconds and up to a minute on my machine (I have slow internet).

Please add progress indication for updating the crates.io index.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cargocargo related issuesC-featureCategory: feature requestS-blockedStatus: marked as blocked ❌ on something else such as an RFC or other implementation work.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions