From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: 30.0.50; 'New' error message when using eglot Date: Thu, 23 Feb 2023 21:30:23 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36314"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Pedro Andres Aranda Gutierrez Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 23 22:29:31 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pVJ9e-0009GZ-Uc for ged-emacs-devel@m.gmane-mx.org; Thu, 23 Feb 2023 22:29:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVJ90-0007p5-09; Thu, 23 Feb 2023 16:28:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVJ8w-0007ol-5O for emacs-devel@gnu.org; Thu, 23 Feb 2023 16:28:47 -0500 Original-Received: from mail-oa1-x2b.google.com ([2001:4860:4864:20::2b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVJ8t-0001ir-Rq for emacs-devel@gnu.org; Thu, 23 Feb 2023 16:28:45 -0500 Original-Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-1720433ba75so17390605fac.5 for ; Thu, 23 Feb 2023 13:28:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677187722; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=qTvRopFa7GvnaeLNCTzgbMOcQSKW24GYi6b9nt3nlqY=; b=WsUUW5m3wU4TxL61qUuG1DL5/UHNbIwpgg/CfKEmQPlbbYSmWvLtASIXw3ztAPvcua fdd8zuhzWG1sSDwaF2OGTOxVBZRjJF+cz7y8AZp3hW65o0siNeuiQjkbFHPVbyMyQ3Uu fujqHUczuB07LxKhUXTkDg5mVbSrCPHifDwdeVjGPn9FI3uAHx/8H0objng96RJWIiKb i7U0LomFUakxYADOqM/C2XYwcv6VyNEOy9K62wgsLZZggU5J6Spljboi6i6l+BsCLAFR 5MrHsG7lP+Ox1DTepX2qWPftEeA3h400rsFAPl9IM2g7SZGi+pRtb6r9aUUS4IRCrhHS aTDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677187722; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qTvRopFa7GvnaeLNCTzgbMOcQSKW24GYi6b9nt3nlqY=; b=CCgPdvF6C6hOnVzjjgH/s7CwShD00PxeTmXalv76F/k+hjO8C1qP3szSWpm//jVqF9 2h+I+I7JkRDs/kDz0uYD529jkZhxcWLpT/49rsE0Wbxq01b12Oyt+Mfvk+1BO/MYRslA Mk3o7gUycmhkuS1tNe4oCa9mVaCGEvstmLVawTzx8meD+2xY0QdBBZI1HTCCmyLucOzw NcKCemdl8xJRnpLkgCwoTf0cTY2My/Y3BMzzFg3FYWcU3DeDc4MPNR4D3bCsyzacy9dp 4TaygctWcSNTb0k8IhhXf5MuomA1tP/2zZ+fuHUcDEP8ZwoMSV8fb8usUnZ0ZkvfnBbT Kreg== X-Gm-Message-State: AO0yUKV9iaxcDgqvneO9DhYiawsphWuZVv+0g4CSsZCrjOjOM8phXOqd 9sNzqZjbKsbnpcyaMJrmP2eGN6bhbMhVoNb4pZM= X-Google-Smtp-Source: AK7set9fejYZVoKExe0DTvIJYkutdmg0MBv/FcCaH0m9IwOGUA4lwSwO5d6zrCjVJGF1R9hLG0zNH5G+/C6PQ1ZKo6g= X-Received: by 2002:a05:6870:954f:b0:16a:6ab4:e878 with SMTP id v15-20020a056870954f00b0016a6ab4e878mr404705oal.8.1677187722142; Thu, 23 Feb 2023 13:28:42 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2001:4860:4864:20::2b; envelope-from=joaotavora@gmail.com; helo=mail-oa1-x2b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303721 Archived-At: I don't know what that config is doing (why are you requiring jsonrpc?) but you seem to be using eglot-ensure in python-mode-hook (maybe, no idea what use-package is doing). So in the latest emacs-29, I can't reproduce with this one-liner. Can you try it? emacs -Q --eval '(add-hook (quote python-mode-hook) (function eglot-ensure))' ~/tmp/coiso.py This starts up pylsp for me (the only python server I have) and seems to wo= rk normally. After you try that and presumably reproduce it, try with M-x toggle-debug-on-error so we can get a backtrace. Jo=C3=A3o On Thu, Feb 23, 2023 at 7:37 AM Pedro Andres Aranda Gutierrez wrote: > > Steps to reproduce: > > Install pylsp 1.7.1 > > emacs -Q -l micro-eglot.el > > ----------- micro-eglot.el ----------------------- > (require 'package) > (add-to-list 'package-archives > '("melpa" . "https://melpa.org/packages/") t) > > (eval-when-compile > (require 'use-package)) > (require 'bind-key) > > (setq use-package-always-ensure t) > (unless (file-directory-p package-user-dir) > (package-refresh-contents)) > > (use-package jsonrpc > :ensure nil) > > (defun my/eglot-mode-hook () > (interactive) > (message "Adding yasnippets to eglot for %s" major-mode)) > > (use-package eglot > :ensure nil > :defines eglot-server-programs > :hook ((eglot-managed-mode . my/eglot-mode-hook) > (python-mode . eglot-ensure)) > :config > (message "Configuring eglot") > (setq eglot-server-programs '(;;(python-mode . ("jedi-language-server"= )) > (python-mode . ("pylsp"))))) > ---------------------------------------------- > > You should see: > > error in process filter: Wrong type argument: plistp, [] [2 times] > > Repeatedly, once the LSP is running > > In GNU Emacs 30.0.50 (build 1, x86_64-apple-darwin17.7.0, NS > appkit-1561.61 Version 10.13.6 (Build 17G14042)) of 2023-02-23 built on > paag.local > Repository revision: fad3665069740e002fcb7f9313f9eeec81ad9a0c > Repository branch: master > Windowing system distributor 'Apple', version 10.3.1561 > System Description: Mac OS X 10.13.6 > > Configured using: > 'configure PKG_CONFIG_PATH=3D/usr/local/lib/pkgconfig > LDFLAGS=3D-L/usr/local/lib CPPFLAGS=3D-I/usr/local/include CC=3Dclang > OBJC=3Dclang 'CFLAGS=3D-g -O3'' > > Configured features: > ACL GMP GNUTLS JPEG JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG > SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM ZLIB > > Important settings: > value of $LC_COLLATE: es_ES.UTF-8 > value of $LC_CTYPE: es_ES.UTF-8 > value of $LC_MESSAGES: es_ES.UTF-8 > value of $LC_MONETARY: es_ES.UTF-8 > value of $LC_NUMERIC: es_ES.UTF-8 > value of $LC_TIME: es_ES.UTF-8 > value of $LANG: es_ES.UTF-8 > locale-coding-system: utf-8-unix > > Major mode: Python > > Minor modes in effect: > eglot--managed-mode: t > flymake-mode: t > override-global-mode: t > tooltip-mode: t > global-eldoc-mode: t > eldoc-mode: t > show-paren-mode: t > electric-indent-mode: t > mouse-wheel-mode: t > tool-bar-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > line-number-mode: t > transient-mark-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > > Load-path shadows: > None found. > > Features: > (shadow sort mail-extr emacsbug message yank-media puny dired > dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config > gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev > gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util > mail-prsvr mail-utils time-date eglot external-completion array > filenotify xref flymake-proc flymake thingatpt compile > text-property-search imenu python rx project treesit comint ansi-osc > ring ansi-color jsonrpc ert pp ewoc debug backtrace find-func pcase > warnings icons cl-extra help-mode use-package use-package-ensure > use-package-delight use-package-diminish use-package-bind-key bind-key > easy-mmode use-package-core package browse-url url url-proxy url-privacy > url-expand url-methods url-history url-cookie generate-lisp-file > url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq > eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv > bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip > cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type > elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util > term/common-win tool-bar dnd fontset image regexp-opt fringe > tabulated-list replace newcomment text-mode lisp-mode prog-mode register > page tab-bar menu-bar rfn-eshadow isearch easymenu timer select > scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors > frame minibuffer nadvice seq simple cl-generic indonesian philippine > cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao > korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech > european ethiopic indian cyrillic chinese composite emoji-zwj charscript > charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure > cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp > files window text-properties overlay sha1 md5 base64 format env > code-pages mule custom widget keymap hashtable-print-readable backquote > threads kqueue cocoa ns multi-tty make-network-process emacs) > > Memory information: > ((conses 16 99707 11890) > (symbols 48 11573 0) > (strings 32 33723 2299) > (string-bytes 1 1028835) > (vectors 16 23053) > (vector-slots 8 316794 15593) > (floats 8 68 15) > (intervals 56 559 0) > (buffers 976 14)) > > -- > Fragen sind nicht da um beantwortet zu werden, > Fragen sind da um gestellt zu werden > Georg Kreisler > > Headaches with a Juju log: > unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should > run a leader-deposed hook here, but we can't yet > --=20 Jo=C3=A3o T=C3=A1vora