rust-lang / rust-lang/rust-analyzer

Rust Analyzer Appears to Be Invalidating The Cargo Build Cache (on mac)

Open
#12,714 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-support
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

This may be the continuation of https://github.com/rust-lang/rust-analyzer/issues/6136.

I've tried rebuilding rust-analyzer from scratch and setting up PKG_CONFIG_PATH explicitly in rust-analyzer.server.extraEnv. Unfortunately, the issue persists. The openssl-sys package is getting rebuilt each time analyzer invokes cargo check.

rust-analyzer version: 0.0.0 (75b22326d 2022-07-03) (built on the latest release branch)

rustc version: 1.61.0-nightly (52b34550a 2022-03-15)

relevant settings: macOS Monterey 12.1,

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the macOS issue with rust-analyzer invoking cargo check, focusing on whether openssl-sys is rebuilt each time. Review the referenced issue #6136 and the reported rust-analyzer and Cargo behavior; done means identifying the cache invalidation cause and confirming that repeated checks reuse the Cargo build cache.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.