Stream: t-compiler/rust-analyzer

Topic: emacs page up / down bounces


Jake Goulding (Mar 12 2021 at 15:52, on Zulip):

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)

Laurențiu (Mar 12 2021 at 16:25, on Zulip):

Is it even related to LSP?

Jake Goulding (Mar 12 2021 at 16:36, on Zulip):

When I turn off LSP (M-x lsp-disconnect) it appears to go away as well

Florian Diebold (Mar 12 2021 at 17:07, on Zulip):

I've never encountered this, and I don't have any idea what could cause it

Jake Goulding (Mar 12 2021 at 18:28, on Zulip):

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.

Jake Goulding (Mar 12 2021 at 18:31, on Zulip):

And I've tried in a different terminal (usually use iTerm, tried with Terminal.app as well)

matklad (Mar 12 2021 at 20:01, on Zulip):

Hm, does it mean you are not seeing this in GUI emacs?

Jake Goulding (Mar 12 2021 at 20:59, on Zulip):

I don't even have a GUI emacs with a reasonable setup :-)

Jake Goulding (Mar 12 2021 at 21:00, on Zulip):

I have Aquamacs installed, but I've never even successfully got it to connect to MELPA

Jake Goulding (Mar 12 2021 at 21:00, on Zulip):

So GUI emacs is a big ? there

matklad (Mar 13 2021 at 08:21, on Zulip):

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?

Jake Goulding (Mar 13 2021 at 20:48, on Zulip):

In the smaller reproduction (after the GIF was made), inlay hints are apparently disabled (since it's all the LSP defaults)

Jake Goulding (Mar 13 2021 at 20:52, on Zulip):

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.

2021-03-13-15.51.36.gif

Jake Goulding (Mar 13 2021 at 22:18, on Zulip):

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.

Last update: Jul 29 2021 at 09:15UTC