-
Notifications
You must be signed in to change notification settings - Fork 165
goto definition outside crate #391
Comments
@dvic can you try |
@kavu thanks for the tip, but it did not work for me. I'm also using nightly. Are you on MacOS? |
@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?.. |
@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?) |
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. |
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. |
I have the exact same issue. I tried using I also tried I'm trying this on macOS |
By the way, setting |
Ran into this issue as well. Bummer. |
Same as this issue? |
If RLS is still this broken, maybe they should just go back and use racer then. Ugh. |
Still not working for me. Can not go to definitions for external projects... |
Same here, still not working.. It still only works when you add the crate folder to the workspace. |
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. |
|
Still not work for external crates... |
use matklad.rust-analyzer, work well |
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!
The text was updated successfully, but these errors were encountered: