Stream: t-compiler/wg-rls-2.0

Topic: excludeGlobs not working?


Geobomatic (Sep 20 2019 at 08:47, on Zulip):

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 target:

"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

matklad (Sep 20 2019 at 08:49, on Zulip):

I think you actually want to include the subdir of target in this case, but that's not supported yet

Geobomatic (Sep 20 2019 at 08:57, on Zulip):

I tried "target/thumbv7em-none-eabi/debug/build/efr32mg12-sys-fa678db515a5a450/out/*" but it's still poping errors

matklad (Sep 20 2019 at 09:01, on Zulip):

yeah, there's no way to fix it without sending a patch to rust-analyzer unfortunatelly

Geobomatic (Sep 20 2019 at 09:12, on Zulip):

I see, I may have a look at this once the raw_string issue is complete :slight_smile:

Last update: Nov 19 2019 at 18:25UTC