-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
A-configconfigurationconfigurationA-vfsC-ArchitectureBig architectural things which we need to figure up-front (or suggestions for rewrites :0) )Big architectural things which we need to figure up-front (or suggestions for rewrites :0) )C-bugCategory: bugCategory: bug
Description
I have a project (https://gitlab.com/subplot/subplot) which has a build.rs which writes a file out to be included into the build.
The file is written out to OUT_DIR (embedded_files.inc)
In my code I have:
static EMBEDDED_FILES: &[(&str, &[u8])] = include!(concat!(env!("OUT_DIR"), "/embedded_files.inc"));In VSCode, I have that line have the following error shown:
failed to load file `/home/dsilvers/dev-git/subplot/target/debug/build/subplot-a90f1b6ad6ba44a6/out/embedded_files.inc`
rust-analyzer(macro-error)
However, that file very much does exist, so the error is spurious. Is there a way to get rust-analyzer to find this file and stop complaining?
NilsIrl, rbehjati, karlmcguire and BD103
Metadata
Metadata
Assignees
Labels
A-configconfigurationconfigurationA-vfsC-ArchitectureBig architectural things which we need to figure up-front (or suggestions for rewrites :0) )Big architectural things which we need to figure up-front (or suggestions for rewrites :0) )C-bugCategory: bugCategory: bug