rust go to definition not work #7711
Replies: 2 comments 1 reply
-
That's a rust-analyzer issue, the server seems yo work and just not find the definition. Could be a case where you added the dependencies to.the Cargo.toml without restarting the LSP |
Beta Was this translation helpful? Give feedback.
1 reply
-
ok, it works if it's a git repo. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
writing rust code,
gd
always giveno definition
, alsogr
,<space>k
not work. but inline errors hints works. rust-analyzer process does not quit.i also try nvim, it works.
rust-analyzer --version
rust-analyzer 1.73.0-nightly (0308df2 2023-07-21)
rustc --version
rustc 1.73.0-nightly (0308df23e 2023-07-21)
Reproduction Steps
src/main.rs
cargo.toml
~/.config/helix/config.toml
~/.cache/helix/helix.log
helix --health rust
Platform
linux
Terminal Emulator
alacritty 0.12.2 (9d9982df)
Helix Version
23.05
Beta Was this translation helpful? Give feedback.
All reactions