rust-lang / rust-analyzer

A Rust compiler front-end for IDEs
https://rust-analyzer.github.io/
Apache License 2.0
14.13k stars 1.57k forks source link

Unresolved module rust-analyzer error when `@` character is in path. #13909

Open yellowchris opened 1 year ago

yellowchris commented 1 year ago

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

lowr commented 1 year ago

I'm failing to reproduce the issue on my Ubuntu machine with an ordinary cargo project under ~/tmp_folder/@, neovim, and coc-rust-analyzer. Could you share some more info on your environment and project structure? It'd be really helpful if you could share the reproducing repository as well (be it minimum or not).