Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upgoto definition outside crate #391
Comments
This comment has been minimized.
This comment has been minimized.
kavu
commented
Aug 6, 2018
|
@dvic can you try |
This comment has been minimized.
This comment has been minimized.
|
@kavu thanks for the tip, but it did not work for me. I'm also using nightly. Are you on MacOS? |
This comment has been minimized.
This comment has been minimized.
kavu
commented
Aug 7, 2018
|
@dvic yeah. Just checked it on my office Mac. Still works, but I had to reopen my VS Code project to force RLS to rebuild / update the project info. After that I could hover over functions from external crates and even Cmd-click them to jump to their source. Maybe you were asking about something else and I misunderstood you?.. |
This comment has been minimized.
This comment has been minimized.
|
@kavu No no it's exactly what you are describing that I'm trying to achieve. I tried restarting visual code, restarting RLS, still doesn't work. So I guess there is something wrong with my environment/setup? Do you know how I can debug the visual code extension (e.g., enable logging?) |
This comment has been minimized.
This comment has been minimized.
|
Found it here: https://github.com/rust-lang-nursery/rls/blob/master/debugging.md#logging I don't see anything in the logs that could explain the behavior. It simple stops after I cmd click and jump to a source file outside my crate. |
This was referenced Aug 9, 2018
This comment has been minimized.
This comment has been minimized.
|
Update from rust-lang/atom-ide-rust#96: it seems that the Atom plugin filters project files before sending them out to the RLS. Does Visual Code also do this? That could explain the issue. |
This comment has been minimized.
This comment has been minimized.
JeanMertz
commented
Aug 16, 2018
|
I have the exact same issue. I tried using I also tried I'm trying this on macOS |
This comment has been minimized.
This comment has been minimized.
JeanMertz
commented
Aug 16, 2018
|
By the way, setting |
This comment has been minimized.
This comment has been minimized.
kbarros
commented
Oct 2, 2018
|
Ran into this issue as well. Bummer. |
This comment has been minimized.
This comment has been minimized.
kbarros
commented
Oct 2, 2018
|
Same as this issue? |
This comment has been minimized.
This comment has been minimized.
DanielJoyce
commented
Oct 9, 2018
|
If RLS is still this broken, maybe they should just go back and use racer then. Ugh. |
This comment has been minimized.
This comment has been minimized.
DanielJoyce
commented
Jan 3, 2019
•
|
Still not working for me. Can not go to definitions for external projects... |
This comment has been minimized.
This comment has been minimized.
|
Same here, still not working.. It still only works when you add the crate folder to the workspace. |
This comment has been minimized.
This comment has been minimized.
prasannavl
commented
Apr 4, 2019
|
Same here. I think it has to do with the rls itself rather than vscode plugin. Had stayed on some Nov/Dec 2018 nightly where everything from the https://rust-lang.github.io/rustup-components-history/ actually built, for a long time now. Go-to-def worked great across crates and stdlib. Just upgraded to to another March variant last week that built most of the components I need and it no longer works outside of the crate. |
dvic commentedAug 2, 2018
Is the goto definition feature supposed to work also outside the current crate? E.g., when you click on a method from an external crate, you cannot use goto definition from there. However, if I open that external crate folder and make RLS index it (by opening a .rs file), then it works. Is this the way it's supposed to work or is there something wrong with my configuration? Thanks!