Stream: t-compiler/rust-analyzer

Topic: Cross crate find usages seems to be broken?


matklad (Mar 09 2021 at 14:26, on Zulip):

I've noticed a couple of times that find usages stated to miss usages in other crates, is this something known?

matklad (Mar 09 2021 at 14:27, on Zulip):

For example, if I search CompletionItem::score function, I don't see a usage in to_proto.rs

matklad (Mar 09 2021 at 14:31, on Zulip):

ah, that's a different bug, we confuse function with a local var

Lukas Wirth (Mar 09 2021 at 14:56, on Zulip):

That misclassification is caused by macros again it seems

Lukas Wirth (Mar 09 2021 at 14:57, on Zulip):

image.png
image.png
Note how the color changes to blue which is callable in my theme

matklad (Mar 09 2021 at 15:07, on Zulip):

Summoning @Jonas Schievink [he/him] )

Jonas Schievink [he/him] (Mar 09 2021 at 15:24, on Zulip):

sigh

matklad (Mar 09 2021 at 15:25, on Zulip):

/me imagines a weary Jonas Schievink [he/him] emerging from a column of smoke

Jonas Schievink [he/him] (Mar 09 2021 at 15:36, on Zulip):

Seems like the problem is:

The function in question will search the inner item scope for completion_item2 and find the (outer) function, ignoring the function argument.

Last update: Jul 27 2021 at 21:15UTC