reddit / emacs

Eglot hangs for multiple seconds on completions

General_Librarian_60 · 2022-11-10 15:05
I've tried a few times to move away from lsp-mode to eglot but every time I get stopped dead in my tracks by a multi second hang on almost any input with a \`error in process filter: flymake-error: \[Flymake\] Unexpected report from disabled backend eglot-flymake-backend\` how do i solve this?
vjgoh · 2022-11-10 16:55
You could try this: `(add-hook 'eglot-managed-mode-hook (lambda () (remove-hook 'flymake-diagnostic-functions 'eglot-flymake-backend)))` I dunno if that'll help. I'm trying to use `eglot-flycheck-adaptor` but I might disable both; I don't find them particularly useful, and in the worst case, they're just outright incorrect.
7890yuiop · 2022-11-10 21:13
If you just want eglot to not integrate with flymake at all, this might do the trick: (with-eval-after-load "eglot" (add-to-list 'eglot-stay-out-of 'flymake))
Glittering-Scar-4719 · 2022-11-10 22:15
Things that resolved this: deleting package caches in my .emacs.d