rust-lang / rust-lang/rust-analyzer
"file not included in module tree" is reported after changing the case of filename
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
NOTE: This is a VSCode issue on case insensitive file systems, a workaround fix is described in this comment
I'm using VSCode with rust-analyzer 0.2.710 on Windows 10.
To reproduce:
- Create a new rust project
- Create
A.rsundersrc - Rename
A.rstoa.rs - Add
mod a;tomain.rs - In
a.rsit reportsfile not included in module treeand IntelliSense is disabled.


Restart VSCode doesn't solve the issue. How can I clear the cache of rust-analyzer?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce on Windows with a Rust project by renaming src/A.rs to src/a.rs and adding mod a; to main.rs. Start by checking how rust-analyzer and VSCode handle the renamed file and module tree. Done means a.rs is included and IntelliSense works without restarting VSCode or relying on the linked workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100