svaante / dape

Debug Adapter Protocol for Emacs
GNU General Public License v3.0
448 stars 25 forks source link

Connection not established due to invalid slot name #95

Closed theSuess closed 4 months ago

theSuess commented 4 months ago

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

svaante commented 4 months ago

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

theSuess commented 4 months ago

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

(use-package dape)
svaante commented 4 months ago

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.

theSuess commented 4 months ago

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

theSuess commented 4 months ago

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