-
Notifications
You must be signed in to change notification settings - Fork 162
GoTo Definition for items in the standard library fails, probably looking in wrong place for source #256
Comments
After an recent rustup update to nightly, go-to-def now only works on my own source. It doesn't work for std, nor for crates I use. |
Not jumping into std is a known issue, but not jumping to dep crates is a new bug |
I am using stable-msvc, and my vscode tried to find src in |
Probably related issue in RLS: rust-lang/rls#227 |
Any progress? |
FYI use this config {
"rust-client.channel": "nightly"
} Then reload window, should works. |
@nrc This seems to be broken again for me (even with nightly): #391 Given the fact I also have the problem with atom rust-lang/atom-ide-rust#96, it might be a regression in RLS? Can anyone confirm whether or not the extension works for std and external crates? Thanks |
By the way: it's not just GoTo Definition, also type information etc. is currently not working for me outside the current crate. |
Yeah, currently you can jump to def into an external crate, but once there you don't get any further help from the RLS (this is a client problem, but is a bit hard to fix and affects multiple clients). |
LsService::handle_message match replaced with macro
When I press F12 GoTo Definition on standard library functions I either get "No definition found for foo"
or a file not found error
It is not predictable as to which I get - you always get the same error for a particular function, but there is no way of predicting which one. Note the path is wrong in the gif, I actually have the source installed here:
Expectation: Should find the appropriate rust-src and take me there.
Everything was installed via rustup and cargo.
Possibly related issue: #185 But that is talking about it always failing. For me, GoTo Definition works OK for my own source and for source in crates I am using. It's just the std stuff that doesn't work.
The text was updated successfully, but these errors were encountered: