rust-lang / rust-lang/rust-analyzer

Autocomplete / code hints not working on variable names

Open
#12,557 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-completion A-vscode C-bug S-actionable
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

I lose auto-complete on some variable names when trying to access the variable from multiple threads and loops. Unfortunately, I couldn't replicate it in a bare minimum example however I made a short video with the bug. The code still runs fine.

https://youtu.be/OPDkgGOr78o

Thank you very much for your time!

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 reviewing the linked reproduction video and the existing issue discussion, then try to construct a minimal example involving variable access across multiple threads and loops. The report provides no source file or reproducible test; done means identifying the cause and restoring autocomplete for the affected variable names.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.