Closed thblt closed 1 year ago
OK, I tried to reproduce with a C source file and clangd
, and couldn't, so the issue may be with rust-analyzer. NeoVim behaves exactly the same as Emacs here with the same Rust file (It originally didn't, because I forgot to disable an autosave plugin…). Closing for now, sorry for the noise, will reopen if anything can be done on eglot side.
The general issue is in the title: I need to save the current buffer for Eglot/flymake to add/update error overlays.
Steps to reproduce:
Create a Rust project somewhere with
cargo init test
, replace contents of the defaultsrc/main.rs
with:emacs -q
(29.1 with latest eglot [1.15.0.20230819.140915] from elpa-devel), open that file, runM-x rust-ts-mode RET
, thenM-x eglot RET
. If prompted for a server, choose rust-analyzer. (I sometimes get prompted, sometimes not, not sure why).baz
on line 3 is now underlined in red (as it should)..baz
on line 3.Contents of
*EGLOT (eldoc-bug-rs/(rust-ts-mode rust-mode)) events*
buffer: