Skip to content

Rust-analyzer fails to start with the latest nightly due to --lockfile-path #21715

@theoparis

Description

@theoparis
2026-02-26T22:06:26.026236-08:00  WARN `cargo metadata` failed and returning succeeded result with `--no-deps` error=`cargo metadata` exited with an error: error: unexpected argument '--lockfile-path' found

  tip: a similar argument exists: '--locked'

Usage: cargo metadata --format-version <VERSION> --manifest-path <PATH> --filter-platform <TRIPLE> --locked

For more information, try '--help'.


Stack backtrace:
   0: <std::backtrace::Backtrace>::create
   1: <anyhow::Error as core::convert::From<cargo_metadata::errors::Error>>::from
   2: <project_model::cargo_workspace::FetchMetadata>::exec::{closure#2}
   3: <project_model::cargo_workspace::FetchMetadata>::exec
   4: <project_model::sysroot::Sysroot>::load_workspace
   5: std::sys::backtrace::__rust_begin_short_backtrace::<<project_model::workspace::ProjectWorkspace>::load_cargo::{closure#1}::{closure#4}, core::option::Option<project_model::sysroot::RustLibSrcWorkspace>>
   6: <std::thread::lifecycle::spawn_unchecked<<project_model::workspace::ProjectWorkspace>::load_cargo::{closure#1}::{closure#4}, core::option::Option<project_model::sysroot::RustLibSrcWorkspace>>::{closure#1} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
   7: <std::sys::thread::unix::Thread>::new::thread_start
   8: __pthread_cond_wait
theo@Theos-MacBook-Pro theos % rustc -Vv
rustc 1.95.0-nightly (6a979b3e3 2026-02-26)
binary: rustc
commit-hash: 6a979b3e32522049d0acb4a47f7ae44b7c8abfd5
commit-date: 2026-02-26
host: aarch64-apple-darwin
release: 1.95.0-nightly
LLVM version: 22.1.0
theo@Theos-MacBook-Pro theos % rust-analyzer --version
rust-analyzer 1.95.0-nightly (6a979b3e 2026-02-26)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Broken WindowBugs / technical debt to be addressed immediately

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions