考慮lsp-mode lsp-ui
yyoncho加了flymake支援後我改成預設flymake是基於兩個原因
(defcustom lsp-prefer-flymake t
"Auto-configure to prefer `flymake' over `lsp-ui' if both are present."
:type 'boolean
:group 'lsp-mode)
-
flycheck有滯留diagnostics問題: [lsp-ui-flycheck] Clear overlays before calling (flycheck-buffer) by MaskRay · Pull Request #214 · emacs-lsp/lsp-ui · GitHub 調用
(flycheck-clear t)
能緩解。但作者有疑慮,需要更多data points -
flycheck性能問題 lsp-ui-flycheck is (sometimes) slow · Issue #45 · emacs-lsp/lsp-ui · GitHub 不知道現在是否改善了
但我用flymake也碰到問題。lingering diagnostics可能有時仍然存在(需要更多data points)
預設開啓的flymake-proc
會創建臨時檔案a_flymake.cc
等,很煩: (setq-default flymake-diagnostic-functions nil)
沒有flymake-posframe,我自己隨手塗了一個 Config/config.el at master · MaskRay/Config · GitHub