svaante / dape

Debug Adapter Protocol for Emacs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Connection not established due to invalid slot name

theSuess opened this issue · comments

I'm trying to use dape with delve to debug a go program but it seems like the connection cannot be established due to a missing slot.

Dape sets up all windows and starts dlv succesfully but after that I only get the following message:

slot-missing: Invalid slot name #<dape-connection dape-connection-31417dc>, :events-buffer-config

Enabling debug information does not create the *dape-connection events* buffer and no additional information is shown in the repl.

I'm using the latest elpa version of dape with emacs 29.2

Hi,
How do you install dape? Because you are not getting the latest version of jsonrpc.el. Which package.el should download and install for you.

M-x package-install

I'm using straight.el as my package manager in combination with use-package.
My configuration is literally just:

(use-package dape)

With M-x list-packages is the following row present?

  jsonrpc                        1.0.25         dependency            JSON-RPC library

Otherwise M-x package-refresh-contents might do the thing together with package-upgrade jsonrpc.
I still don't understand the inner workings with package.el and package loading order.

It's using the built-in jsonrpc for me. Judging from #70, using a newer jsonrpc version should fix my issue. I'll see if I can get this working

Yes, updating jsonrpc fixed the issue - thanks for pointing out the incompatibility