GNU bug report logs - #70211
emacs-eglot fails after upgrade to emacs-29.3

Previous Next

Package: guix;

Reported by: Lilly <lilly.ra <at> proton.me>

Date: Fri, 5 Apr 2024 07:44:02 UTC

Severity: normal

Tags: moreinfo

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 70211 in the body.
You can then email your comments to 70211 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#70211; Package guix. (Fri, 05 Apr 2024 07:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lilly <lilly.ra <at> proton.me>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 05 Apr 2024 07:44:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lilly <lilly.ra <at> proton.me>
To: "bug-guix <at> gnu.org" <bug-guix <at> gnu.org>
Subject: emacs-eglot fails after upgrade to emacs-29.3
Date: Fri, 05 Apr 2024 07:25:07 +0000
[Message part 1 (text/plain, inline)]
Hi,

after upgrading to emacs 29.3 eglot fails to start with an error message like

Invalid slot name: "#<eglot-lsp-server eglot-lsp-server-cacbec>", :events-buffer-config

This also happens if I start emacs with 'emacs -q' and activate just eglot manually.

I'm using not the build-in eglot package, but emacs-eglot <at> 1.17. This package has a dependency to emacs-jsonrpc <at> 1.0.23
Upgrading jsonrpc to version 1.0.25 solved the issue for me.

Yours,
Lilly
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#70211; Package guix. (Thu, 11 Apr 2024 04:54:03 GMT) Full text and rfc822 format available.

Message #8 received at 70211 <at> debbugs.gnu.org (full text, mbox):

From: hiecaq <this <at> hiecaq.org>
To: 70211 <at> debbugs.gnu.org
Cc: Lilly <lilly.ra <at> proton.me>
Subject: Re: bug#70211: emacs-eglot fails after upgrade to emacs-29.3
Date: Wed, 10 Apr 2024 22:49:58 +0800
Lilly via Bug reports for GNU Guix <bug-guix <at> gnu.org> writes:

> Hi,
>
> after upgrading to emacs 29.3 eglot fails to start with an error 
> message like
>
> Invalid slot name: "#<eglot-lsp-server 
> eglot-lsp-server-cacbec>", :events-buffer-config
>
> This also happens if I start emacs with 'emacs -q' and activate 
> just eglot manually.
>
> I'm using not the build-in eglot package, but emacs-eglot <at> 1.17. 
> This package has a dependency to emacs-jsonrpc <at> 1.0.23
> Upgrading jsonrpc to version 1.0.25 solved the issue for me.
>
> Yours,
> Lilly

I also encountered this on my Guix configuration (on a foreign 
distro). I tried to investigate into it, but I got confused.

The error message I got is:
> slot-missing: Invalid slot name: "#<eglot-lsp-server 
> eglot-lsp-server-170231c>", :events-buffer-config

However, events-buffer-config (it is defined in 
jsonrpc-connection, and eglot-lsp-server inherits that if I read 
correctly) is introduced in jsonrpc.el at 
e0b9944b69ff72923c29756fcfcea9528a3f5069, which is included in 
1.0.23.




Information forwarded to bug-guix <at> gnu.org:
bug#70211; Package guix. (Sat, 13 Apr 2024 11:00:02 GMT) Full text and rfc822 format available.

Message #11 received at 70211 <at> debbugs.gnu.org (full text, mbox):

From: hiecaq <this <at> hiecaq.org>
To: 70211 <at> debbugs.gnu.org
Cc: Lilly <lilly.ra <at> proton.me>
Subject: Re: bug#70211: emacs-eglot fails after upgrade to emacs-29.3
Date: Sat, 13 Apr 2024 18:58:57 +0800
Lilly via Bug reports for GNU Guix <bug-guix <at> gnu.org> writes:

> Upgrading jsonrpc to version 1.0.25 solved the issue for me.

Hi, the above solution does not work for me so I tried to dig into 
the problem further, and I think I've moved closer to the real 
cause of this problem.

TLDR:

This issue is more close related to jsonrpc instead of eglot, and 
putting
> (setq load-no-native t)
In early-init.el fixes the problem for me.

The first thing I noticed is that if we look up 
"jsonrpc-connection", Help page tells us that it is a 
native-compiled function, which is the hint to my following 
attempts because in my configurations  packages are only 
byte-complied and not native-compiled, while built-ins are 
native-compiled. This can be quickly checked if you open the 
jsonrpc.elc file. (and I believe that it is the same case for the 
upstream Guix)

Also, if you visit the "jsonrpc-connection"'s class Help page, it 
shows that it does not have a slot named 
"events-buffer-config". Instead it has 
"events-buffer-scrollback-size", which reflects the corresponding 
file in 29.3 built-in.

So my guess is that Emacs somehow prefers the native-compiled 
version (from the built-in) over the byte-compiled version (from 
the package), even if the latter is newer. I do have "(setq 
load-prefer-newer t)" in my early-init.el, but it still works that 
way. I'm not sure why the package loading works as expected before 
recent updates in Guix though.




Information forwarded to bug-guix <at> gnu.org:
bug#70211; Package guix. (Sat, 11 Jan 2025 11:08:02 GMT) Full text and rfc822 format available.

Message #14 received at 70211 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: hiecaq <this <at> hiecaq.org>, 70211 <at> debbugs.gnu.org
Cc: Lilly <lilly.ra <at> proton.me>, liliana.prikler <at> gmail.com
Subject: Re: bug#70211: emacs-eglot fails after upgrade to emacs-29.3
Date: Sat, 11 Jan 2025 12:07:05 +0100
Hi guys,

I think this issue is fixed with the patches in 67292.  Can you try them
and merge or close this issue after that? Thanks!

-- 
Best regards,
Nicolas Graves




Added tag(s) moreinfo. Request was from Simon Tournier <zimon.toutoune <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 10 Mar 2025 19:48:05 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 70211 <at> debbugs.gnu.org and Lilly <lilly.ra <at> proton.me> Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Sat, 22 Mar 2025 15:10:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 20 Apr 2025 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 19 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.