rust-lang / rust-lang/rust-analyzer
Hover range breaks within attribute macros
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
rust-analyzer version: rust-analyzer 1.76.0 (07dca489 2024-02-04)
rustc version: rustc 1.76.0 (07dca489a 2024-02-04)
relevant settings: I'v set "rust-analyzer.procMacro.ignored": {
"tokio": [
"main"
],
"tracing": [
"instrument"
]
}
https://github.com/rust-lang/rust-analyzer/assets/97848247/dd01ef5c-17f4-4f19-b769-9b92e6dc5e03
hover range no longer works(to get type info).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported hover-range failure inside attribute macros using the issue's rust-analyzer and rustc versions and proc-macro settings. Trace the hover behavior for the affected macro-expanded code; done means hover again provides the correct type information over the intended range.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100