Hi, working with bindgen at the moment, when opening
bindings.rs, I have a bunch of error from RA:
[Error - 09:40:33] Request textDocument/hover failed. Message: Rust file outside current workspace is not supported yet. Code: -32600
Fair enough, it is located in
target/thumbv7em-none-aebi/my_crate-sys-hexnumber/out/. So I want to exclude everything under
"rust-analyzer.excludeGlobs": [ "tests/**", "lib/**", "target/**, ],
but it's still poping errors.
I've seen the note in the doc:
Note: glob patterns are applied to all Cargo packages and a rooted at a package root.
but I don't understand what it means
I think you actually want to include the subdir of
target in this case, but that's not supported yet
"target/thumbv7em-none-eabi/debug/build/efr32mg12-sys-fa678db515a5a450/out/*" but it's still poping errors
yeah, there's no way to fix it without sending a patch to rust-analyzer unfortunatelly
I see, I may have a look at this once the raw_string issue is complete :slight_smile: