From 0a587a881afc76b479fc18d0f0c52e0b32998d80 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Fri, 4 May 2018 00:12:53 +0100 Subject: [PATCH] * eglot.el (eglot--process-receive): skip null method notifs. --- lisp/progmodes/eglot.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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) -- 2.39.2