Skip to content

Cached offline use regression since lock file copying was implemented #20115

Open
@Veykril

Description

@Veykril

With Rust analyzer version 0.3.2509 for VSCode I was unable to use my typical workflow for working offline.

Before #20018 was merged I was able to connect to the internet, run cargo metadata, and as long as my crate versions didn't change I was able to continue using it offline.

I'm on a restricted machine where the main GUI desktop can't connect to the internet, but I can open up a shell that has internet access and I tend to run cargo fetch in that shell to get everything downloaded before using the GUI offline.

The issue now is that rust-analzyer is creating a new folder at target/rust-analyzer/metadata and since I haven't run cargo metadata in that folder ( since it doesn't exist until running the GUI with an internet connection ) the metadata isn't cached and rust-analyzer can't startup.

I realize that this is a little bit of a special case, but it still feels like maybe I should be able to have an option to run rust-analyzer against the normal cargo metadata location.

Originally posted by @zicklag in #12499

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cargocargo related issuesC-supportCategory: support questions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions