I use emacs on macOS in the terminal with rust-analyzer. Sometimes, when I use Page Up / Page Down, the scroll position "resets".
In this GIF, I only ever hit Page Up, but the document scrolls back. Any tips on where to start debugging that? (I'm also asking in the emacs LSP Discord)
Is it even related to LSP?
When I turn off LSP (
M-x lsp-disconnect) it appears to go away as well
I've never encountered this, and I don't have any idea what could cause it
Starting emacs with
emacs -q -l /tmp/lsp-start-plain.el -nw src/resources/common.rs (lsp-start-plain.el) has the same problem, so it seems unlikely to be user-config.
And I've tried in a different terminal (usually use iTerm, tried with Terminal.app as well)
Hm, does it mean you are not seeing this in GUI emacs?
I don't even have a GUI emacs with a reasonable setup :-)
I have Aquamacs installed, but I've never even successfully got it to connect to MELPA
So GUI emacs is a big ? there
I see inlay hints, and we do use weird unicode symbols for them (zero width whitespace and such), so that might clash with some kind of an escape sequence?
In the smaller reproduction (after the GIF was made), inlay hints are apparently disabled (since it's all the LSP defaults)
Hmm, it looks like it has something to do with the end of the visible buffer. If I just arrow-down to the last line, it automatically centers the visible buffer on that line.
It seems to have something to do with the lsp headerline breadcrumb and an older version of emacs from trunk. I upgraded my version of emacs and it seems to have disappeared.