rust-lang / rust-lang/rust-analyzer

Inconsistent inta-doc link resolution in for Hover

Open
#11,963 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-hover C-bug
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

Link rewrite for hover requests doesn't work across crate boundaries for some definition types. I haven't experimented much with what combinations do and don't work, I discovered this when trying to add functionality to kak-lsp. Can investigate more if this isn't know behavior.

Sample testcases:
https://github.com/adrusi/rust-analyzer/commit/e3af6d51c1b12cba6963e3333d33d68e21c9cee3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the sample testcase commit e3af6d51c1b12cba6963e3333d33d68e21c9cee3 and reproducing the hover requests across crate boundaries. Compare the definition types and link-rewrite results, then establish tests covering the failing combinations so cross-crate hover links resolve consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.