Stream: t-compiler/rust-analyzer

Topic: rust-analyzer not indexing dependencies?

Anirudh Chhangani (May 09 2020 at 07:55, on Zulip):


Anirudh Chhangani (May 09 2020 at 07:57, on Zulip):

I am trying to setup sublime text 3 with rust-analyzer and LSP package on windows with rust msvc toolchain, for most part the project is indexed properly but I cannot jump to dependencies, is this expected behaviour?

Laurențiu (May 09 2020 at 08:04, on Zulip):

Does that also happen without #[derive]?

Laurențiu (May 09 2020 at 08:05, on Zulip):

diesel is kinda of finicky anyway, maybe you can try with types or functions from a different crate

Anirudh Chhangani (May 09 2020 at 08:47, on Zulip):

hmm, strangely works without derive, but then i cannot go deeper than just one jump. I could jump to queryable, but cannot jump to other symbols in that file. I tried

fn new_q() { let s = Queryable(); }

Anirudh Chhangani (May 09 2020 at 08:48, on Zulip):

is this a limitation of rust-analyzer, rls works properly for this use case though.

Laurențiu (May 09 2020 at 09:17, on Zulip):

Do you mean this file? I'm surprised Queryable() works, since that's a trait.

Anirudh Chhangani (May 09 2020 at 09:20, on Zulip):

oh sorry, I guess I confused you, I just used it in this way to see if it jumps to that symbol, of course it can't be used this way

Anirudh Chhangani (May 09 2020 at 09:22, on Zulip):

once I jump to this file I cannot jump further to any other symbol, for ex , in that file I cannot jump to symbol Backend.

Anirudh Chhangani (May 09 2020 at 09:33, on Zulip):

update: I tried with rls it jumps even with derive.

Laurențiu (May 09 2020 at 10:22, on Zulip):

I'm not sure. It works for me in Code and nvim/LanguageClient-neovim

Anirudh Chhangani (May 09 2020 at 12:42, on Zulip):

bummer, not sure what I am missing..

Laurențiu (May 09 2020 at 12:47, on Zulip):

Do other crates work for you?

Anirudh Chhangani (May 09 2020 at 12:53, on Zulip):

unfortunately all crates are showing same behaviour, tried on mac/linux no change.

Laurențiu (May 09 2020 at 13:47, on Zulip):

Does it also happen in a new project?

Anirudh Chhangani (May 09 2020 at 13:50, on Zulip):

yes this is a new project I created

Last update: Jul 29 2021 at 08:30UTC