rust-lang / rust-lang/rust-analyzer
Typing `<` inserts gibberish
Open
Nobody has claimed this yet.
A-vscode
C-bug
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
rust-analyzer version: 84be2eaf9 2022-05-23 stable
rustc version: rustc 1.60.0 (7737e0b5c 2022-04-04)
relevant settings: Didn't find any
Sometimes, typing < to specify generics inserts $0, like here:
let v: Vec
The result is let v: Vec<$0>, which is invalid code.
This started happening on the latest release.
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
No source file or test is named in the report. Reproduce the issue with let v: Vec and inspect rust-analyzer's handling of a typed <; done means typing the generic delimiter no longer inserts the $0 placeholder or produces invalid code.
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
- Mostly clear
- Newbie friendliness
- 35/100