My eglot just stops working properly from time to time. Every once in a while, it’ll get “out of sync” from the buffer. i.e. even after I correct the syntax error it reports, it still sends the old code to LSP, and therefore keeps reporting the fixed errors.
`elgot-reconnect` fixes it, but it’s really not a solution to call `eglot-reconnect` every 10 minutes.
Do you use corfu for completion by any chance? If yes, see this:
https://github.com/joaotavora/eglot/discussions/1127
Not solved, but although it’s not supposed to be a fix wrapping
eglot-completion-at-point
incape-capf-noninterruptible
(read the thread for details) made things OK for me.