svaante / dape

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

"Error: listen EADDRINUSE: address already in use" with js-debug-node-attach #122

Closed DamienCassou closed 1 month ago

DamienCassou commented 1 month ago

When I try to use dape, I see EADDRINUSE errors in *dape-server stderr*:

Error: listen EADDRINUSE: address already in use ::1:42005
    at Server.setupListenHandle [as _listen2] (node:net:1897:16)
    at listenInCluster (node:net:1945:12)
    at GetAddrInfoReqWrap.doListen [as callback] (node:net:2109:7)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:8) {
  code: 'EADDRINUSE',
  errno: -98,
  syscall: 'listen',
  address: '::1',
  port: 42005
}

Process dape adapter stderr<1> finished

The repl keeps working so I'm not sure how important this problem is.

svaante commented 1 month ago

Nice find, it should be fixed by 54e160e

DamienCassou commented 1 month ago

Thank you very much!