rust-lang / rust-lang/rust-analyzer

Folder and File Name Casing Breaks Processing

Open
#15,300 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I am having some issues with the plug-in ignoring certain files in the project and I think I may have found what is causing it.

Subfolders with capital names are not processed and give the below error when browsing the files while subfolders with all lowercase names work fine.

Error:
image

Example of what works and what doesnt:
image

Hope this helps some people. Thanks for the awesome extension.

rust-analyzer version: 0.3.1591-standalone

rustc version: rustc 1.70.0

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

No source file, test, or entry point is named in the report. First reproduce the problem with capitalized and lowercase subfolders using the reported rust-analyzer and rustc versions, then trace file browsing and folder-processing behavior. Done means files in capitalized folders are processed without the reported error and a regression test covers the casing difference.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.