rust-lang / rust-lang/rust-analyzer

Always uses main branch

Open
#13,487 6 comments 0 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

I have this in my Cargo.toml

[dependencies]
# ...
texture_packer = { git = "https://github.com/botahamec/piston_texture_packer", branch = "u16" }

But I'm still getting a compiler error which should only appear on the main branch. I've tried restarting rust-analyzer, restarting VSCode, and running cargo update. None of that seems to fix it. Running cargo clean does, however. Running cargo check didn't give me this error, even before I ran cargo clean or cargo update.

rust-analyzer version: rust-analyzer version: 0.4.1259-standalone (53b6d69e9 2022-10-24)

rustc version: 1.66.0-nightly (dcb376115 2022-10-20)

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 report with the shown Cargo.toml dependency and compare rust-analyzer's diagnostics with cargo check before and after cargo clean. The issue is resolved when rust-analyzer respects the selected git branch without requiring a clean build.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
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.