Skip to content

git dependencies not updating in analyzer after updating repository and doing "cargo update" #19598

Open
@Knar33

Description

@Knar33

rust-analyzer version: rust-analyzer version: 0.3.2379-standalone (8365cf8 2025-04-13)

rustc version: rustc 1.83.0 (90b35a623 2024-11-26)

editor or extension: VSCode, extension version 0.3.2379

relevant settings: nothing special AFAIK

repository link (if public, optional): Not public

I have a project that I'm working on that has a private repository that I'm using as a git dependency. Everything works fine until I update the private repository. I push a new version of the code to the private repository then cargo update [dependency] to download the new version to the project that depends on it, and confirm in my Cargo.lock that the new version is there.

The change I'm making in this scenario fixes an error that was showing up from rust-analyzer, and after doing the above steps the error is still there. cargo build works fine and shows no error but still doesn't update rust-analyzer. It's like rust-analyzer is using a cached version of the code that I can't locate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions