mfussenegger / nvim-dap

Debug Adapter Protocol client implementation for Neovim
GNU General Public License v3.0
5.17k stars 180 forks source link

codelldb automatically launch fail #1057

Closed qlibp closed 9 months ago

qlibp commented 9 months ago

Debug adapter definition and debug configuration

use the configuration from this repo link

verified that commit e71da68e59eec1df258acac20dad206366506438 works, but master commit fail.

error due to ${port} not parsed successfully.

Debug adapter version

1.10.0

Steps to Reproduce

  1. :DAPcontinue
  2. connect() #2 argument invalid, error return nil, expected number

Expected Result

stated above

Actual Result

stated above

mfussenegger commented 9 months ago

Works fine for me. Can't reproduce and the reproduction steps are not nearly enough.

There's also an assertion before the connect call:

https://github.com/mfussenegger/nvim-dap/blob/92dc531eea2c9a3ef504a5c8ac0decd1fa59a6a3/lua/dap/session.lua#L1312

No idea how you could get the error you're seeing if you're on latest master. Maybe it's not the port that's the problem but the hostname resolving.

qlibp commented 9 months ago

Not sure the reason why, but I could confirm that for now, when I switch back the master branch, dap works fine. The only difference is that I also use dap-ui, which is quite weird...