Subject: Re: Fwd: bug#75592: 29.4; Eglot Invalid Slot Name Error
From: Eli Zaretskii <[email-masked]>
To: João Távora <[email-masked]>
Cc: [email-masked], [email-masked]
Date: Sat, 01 Feb 2025 13:51:13 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

> From: João Távora <[email-masked]>
> Date: Sat, 18 Jan 2025 19:51:45 +0000
> 
> [Sorry forgot to send this to the bug tracker]
> 
> On Sat, Jan 18, 2025 at 10:35 AM Eli Zaretskii <[email-masked]> wrote:
> >
> > > From: Заболотько
> > >  <[email-masked]>
> > > Date: Wed, 15 Jan 2025 19:33:47 +0300
> > >
> > > 1. Start 'emacs -Q'.
> > > 2. M-x toggle-debug-on-error
> > > 3. C-x d (open with dired directory with one file only) ~/development/temp/
> > > 4. Open with dired the `hello.hs`file with following content:
> > > main :: IO ()
> > > main = putStrLn "Hello, World!"
> > > 5. M-x eglot
> > > 6. On prompt:
> > > "[eglot] Couldn't guess LSP server for `fundamental-mode'
> > > Enter program to execute (or <host>:<port>):" insert  (without double quotes):
> > > "haskell-language-server-wrapper" (I use language server 2.9.0.1 installed from
> > > https://www.haskell.org/ghcup/ )
> > > 7. See *Backtrace* buffer with following content:
> > > Debugger entered--Lisp error: (invalid-slot-name "#<eglot-lsp-server eglot-lsp-server-622e880>" :
> > > events-buffer-config)
> 
> > João, could you please look into this?
> 
> The reporter probably isn't running the recipe they gave us.  If they did,
> they wouldn't get the error, because Emacs -Q does not initialize the package
> system automatically and so does not load in any eglot.el version that expects
> eglot-lsp-server instances to have an events-buffer-config slot.
> 
> So this is a mismatch between the Eglot and Jsonrpc package versions and
> it is not triggered in Emacs 29.4 (the version reported by M-x report-emacs-bug)
> when used with the -Q flag.

Thanks.  No further comments within 2 weeks, so I'm now closing this
bug.