Bad offset
when inserting and removing newlines before a code lens quickly
#12718
Labels
Broken Window
Bugs / technical debt to be addressed immediately
C-bug
Category: bug
S-actionable
Someone could pick this issue up and work on it right now
rust-analyzer version:
rust-analyzer 1.64.0-nightly (75b2232 2022-07-03)
rustc version:
rustc 1.64.0-nightly (7665c3543 2022-07-06)
relevant settings: I doubt these are really relevant but,
CARGO_HOME=~/.var/app/org.rust-lang.Cargo
,RUSTUP_HOME=~/.var/app/org.rust-lang.Rustup
(I put all applications that install their own/opt/foo
like directories in~/.var/app
because it declutters my home directory.In VSCode, write the following (make sure to keep the leading and trailing newline):
In between the
extern crate foo;
andpub enum Foo {
lines, hold shift and try pressing enter, backspace, enter, backspace, repeatedly, and you should get a "A request has failed" notification. The panic message says something related to a bad range offset. I'm unsure of if this can occur with other items (functions, modules, etc), because I was unable to reproduce it with anything other thanextern crate
andenum
. I'm guessing this is probably some kind of client synchronization issue, and if its just another case of a larger bug, I apologize.Lastly, heres a video of the bug in action.
The text was updated successfully, but these errors were encountered: