rust-lang / rust-lang/rust-analyzer
Unresolved module rust-analyzer error when `@` character is in path.
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
I am running into a bug with similar symptoms as in this issue: https://github.com/rust-lang/rust-analyzer/issues/5484, but the cause seems to differ slightly.
When accessing a file in a project with a file system path including a @ character, rust-analyzer cannot find files included via mod.
When accessing the file through a symlink with a path without the @ character, rust-analyzer works as expected.
rust-analyzer version: rust-analyzer 0.3.1348-standalone
rustc version: rustc 1.66.0
relevant settings: Using via https://github.com/fannheyward/coc-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 the issue with a project whose filesystem path contains @, then compare module resolution when accessing it directly and through a symlink without @. Trace rust-analyzer's path handling and module resolution; done when files included via mod resolve correctly from the path containing @.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100