From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: eglot picks up builtin jsonrpc, but requires newer version Date: Tue, 17 Sep 2024 17:57:58 +0200 Message-ID: <8634lyuvax.fsf@fastmail.fm> References: <86ttefg8w4.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27402"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier To: Stefan Monnier via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 17 17:58:45 2024 Return-path: Envelope-to: geh-help-gnu-emacs@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 1sqabD-0006y8-Ue for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 17 Sep 2024 17:58:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqaaf-0004RP-Jx; Tue, 17 Sep 2024 11:58:09 -0400 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 1sqaad-0004R8-K8 for help-gnu-emacs@gnu.org; Tue, 17 Sep 2024 11:58:08 -0400 Original-Received: from fhigh3-smtp.messagingengine.com ([103.168.172.154]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqaab-0002sj-DG for help-gnu-emacs@gnu.org; Tue, 17 Sep 2024 11:58:06 -0400 Original-Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfhigh.phl.internal (Postfix) with ESMTP id C800111401A0; Tue, 17 Sep 2024 11:58:02 -0400 (EDT) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Tue, 17 Sep 2024 11:58:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1726588682; x=1726675082; bh=veFGBWEqzI e9GvleXx4D4uLvlURQyG1mWxZTVKrv8sk=; b=oTG+OXd+ZU1aQpTJj8P0RPe0DF cA/5G8ItKFB38Fqg7gthEiUkSuCRIdV6EQay31HZxHrrOK4nzPLNYGm6trtJBksI lN6m7+No0+J2wCcqq/EHIKteCZS8Ht6rFb2ikzgSdv2WNZQHmGLubDife8yLdzUx iVCXNKaDGnTc84aRFgmHrfJsVNISsYvNE2UadFGolwO5UdpSI3tjt92BRbrty/ym Nzqs+8s9SkEGSI8sH02wzPhPqW7zgSQxNbr1kr5Q5/kCqKb9K/Fbdc8uiqQx/bv2 19N4yfumDYQnTpik0MO8drPy5WgDjB8k2iJZuCCpQo4cJ6vBPj9asrT2zZWw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1726588682; x=1726675082; bh=veFGBWEqzIe9GvleXx4D4uLvlURQ yG1mWxZTVKrv8sk=; b=VkMOsqCr5R87Plp0jZ8LyiNAh/pHpSvwT7PDDrvfbYIp GF7ZaOGK+M/JC5CrYZ7SnBmDodwwFe65k96ORdt8SvGBDTGDlzirxDA9O0yon8Qp 1k0HxlJRmYb10+XmKAS8QvfGuo+myZXDHSVJMJXnFyZe08eKK4fJCqhNyoeYAjer zO9XFs+ql+npRA/Hmcav6PYLkF9mfMpETqHsOSLNaPkD5k2RJtCnlJHTUL1FFOtS v1hG2JWWJNcYnInNS0b1OGQ6emJQq+9/ch2c91B5CrEY+MMr4xWVfQToL2yrhKKP uUPqm9SkozFRRUYIZCkhlWjzaZVWO0S51EKSi7tdAw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudekjedgleejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffffkgggtsehttdertddttddtnecu hfhrohhmpeflohhoshhtucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgvmhgvrhhssehfrg hsthhmrghilhdrfhhmqeenucggtffrrghtthgvrhhnpeekveelieeuleettdefueegvddu kefhgeevleduveeileetkeeggfekhfeuffffieenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgr ihhlrdhfmhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpth htohepmhhonhhnihgvrhesihhrohdruhhmohhnthhrvggrlhdrtggrpdhrtghpthhtohep hhgvlhhpqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: ie15541ac:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 17 Sep 2024 11:58:01 -0400 (EDT) In-Reply-To: (Stefan Monnier via Users list for the's message of "Tue, 17 Sep 2024 08:04:15 -0400") Received-SPF: pass client-ip=103.168.172.154; envelope-from=joostkremers@fastmail.fm; helo=fhigh3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148008 Archived-At: On Tue, Sep 17 2024, Stefan Monnier via Users list for the GNU Emacs text editor wrote: >> From what I can tell, this is ultimately caused by Eglot not finding the >> ELPA version of jsonrpc (1.0.25), instead using the built-in version of >> jsonrpc (1.0.16). > > Two possibilities: > > - The newer jsonrpc is not in your `load-path` (i.e. the package is not > "activated"). > > - The newer jsonrpc is in your `load-path` but it gets added to it "too > late", i.e. after something else required `jsonrpc`. Actually, it was the third option: me misdiagnosing the problem... Eglot was using the newer jsonrpc, but it was the built-in Eglot, so it was expecting the built-in jsonrpc. Installing a newer Eglot version from GNU ELPA fixed the problem. And of course I'm hoping this won't cause any issues... This is a problem I've been running into several times now: install some package, which installs as a dependency a newer version of a built-in package, which in turn causes compatibility issues for other built-in packages... Turns out it is dape that requires the newer jsonrpc, but I've also had this happen with packages that require some newer version of transient that causes `emoji-insert` to suddenly barf some incomprehensible error message at me... Not sure what can be done about this, though. Perhaps it would be a good idea to add something to the coding conventions for Emacs packages? If you depend on a specific Emacs version (dape depends on Emacs 29.1), don't depend on newer versions of packages that are built-in? Not sure how to phrase this but you get what I mean... -- Joost Kremers Life has its moments