unresolved-module
when using a #[path]
attribute with a file outside of the current crate
#14230
Labels
C-bug
Category: bug
rust-analyzer version:
0.3.1418-standalone
rustc version:
rustc 1.67.1 (d5a82bbd2 2023-02-07)
relevant settings: All default as far as I know.
platform:
rust-analyzer
extension on VSCode, on Linux Mint 21 Cinnamon.Hello,
I ran into an issue using the
#[path]
attribute to point to a file outside the crate.This makes rust-analyzer run into an
unresolved-module
error, whilecargo build
andcargo run
work fine.Directory structure to reproduce the issue:
This directory structure confuses
rust-analyzer
butcargo
itself builds and runs fine.The text was updated successfully, but these errors were encountered: