Skip to content

Check-on-save only starts with huge delay when cache priming is disabled #13770

@RalfJung

Description

@RalfJung

Since some time recently, there is a huge delay of 10-60s between hitting Ctrl-S and RA starting to do the next check-build. Needless to say that slows down the usual development process quite a bit.

This seems to happen in Miri, but not in smaller repos, and not when I disable proc macro support. It also only happens when cache priming is disabled.

rust-analyzer version: rust-analyzer version: 0.3.1317-standalone

rustc version: rustc 1.68.0-nightly (e1c9121 2022-12-11)

relevant settings:

    "rust-analyzer.cachePriming.enable": false,
    "rust-analyzer.cargo.buildScripts.useRustcWrapper": false,

    "rust-analyzer.rustc.source": "discover",
    "rust-analyzer.linkedProjects": [
        "./Cargo.toml",
        "./cargo-miri/Cargo.toml"
    ],
    "rust-analyzer.checkOnSave.overrideCommand": [
        "./miri",
        "cargo",
        "clippy",
        "--all-targets",
        "--message-format=json"
    ],
    // Contrary to what the name suggests, this also affects proc macros.
    "rust-analyzer.cargo.buildScripts.overrideCommand": [
        "./miri",
        "cargo",
        "check",
        "--message-format=json",
    ],

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-flycheckissues with flycheck a.k.a. "check on save"C-bugCategory: bugE-unknownIt's unclear if the issue is E-hard or E-easy without digging in

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions