From 07d71f4ec75cc60634d36fff25ffc362be3dad72 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Fri, 1 Jun 2018 14:12:54 +0100 Subject: [PATCH] Prevent possible cquery choke on :initializationoptions Hopefully help debug https://github.com/joaotavora/eglot/issues/10. * eglot.el (eglot-initialization-options): Use `list' --- lisp/progmodes/eglot.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index cc5649fa382..a991cb1f785 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -1600,8 +1600,8 @@ If SKIP-SIGNATURE, don't try to send textDocument/signatureHelp." "Passes through required cquery initialization options" (let* ((root (car (project-roots (eglot--project server)))) (cache (expand-file-name ".cquery_cached_index/" root))) - (vector :cacheDirectory (file-name-as-directory cache) - :progressReportFrequencyMs -1))) + (list :cacheDirectory (file-name-as-directory cache) + :progressReportFrequencyMs -1))) (cl-defmethod eglot-handle-notification ((_server eglot-cquery) (_method (eql :$cquery/progress)) -- 2.39.2