From: João Távora Date: Thu, 3 May 2018 23:12:53 +0000 (+0100) Subject: * eglot.el (eglot--process-receive): skip null method notifs. X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~653 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0a587a881afc76b479fc18d0f0c52e0b32998d80;p=emacs.git * eglot.el (eglot--process-receive): skip null method notifs. --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index ebc07d21622..693535ac8b1 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -477,8 +477,11 @@ identifier. ERROR is non-nil if this is an error." (plist-get message :params) (let ((id (plist-get message :id))) (if id `(:id ,id))))) - (eglot--warn "No implemetation for notification %s yet" - method))))))) + ;; pyls keeps on sending nil notifs for each notif we + ;; send it, just ignore these. + (unless (null method) + (eglot--warn "No implemetation for notification %s yet" + method)))))))) (defvar eglot--expect-carriage-return nil)