Stream: t-compiler/rust-analyzer

Topic: Excluding a crate

Denis (Mar 31 2021 at 19:01, on Zulip):

Hello everyone! Is there a way to exclude a single crate from indexing? I've got one that takes way too much time to index (in contains A LOT of proc macros), like more than five minutes.

Denis (Mar 31 2021 at 19:05, on Zulip):

Excluding a directory which contains the code of that crate doesn't seem to work :(

Jonas Schievink [he/him] (Mar 31 2021 at 19:46, on Zulip):

proc macro definitions shouldn't take longer to index that any other crate, so that seems like a bug. Is the source code available somewhere?

Denis (Apr 01 2021 at 13:41, on Zulip):

i don't think indexing the definitions takes long time, the thing is billions of lines of code is generated by proc-macros in the crate of interest. unfortunately, the source code of those is not available :(

Laurențiu (Apr 01 2021 at 13:48, on Zulip):

Sounds like the winrt crate

Edwin Cheng (Apr 01 2021 at 15:36, on Zulip):

I still remember my reaction when I was facing winrt problem first time in RA

Denis (Apr 02 2021 at 10:40, on Zulip):

well there's always an option to disable proc macro analysis and it helps, but it's a shame to lose such a great feature :)

Last update: Jul 24 2021 at 20:15UTC