local dap, dapui = require "dap", require "dapui"
dap.listeners.before.attach.dapui_config = function()
dapui.open()
end
dap.listeners.before.launch.dapui_config = function()
dapui.open()
end
dap.listeners.before.event_terminated.dapui_config = function()
dapui.close()
end
dap.listeners.before.event_exited.dapui_config = function()
dapui.close()
end
dap.adapters.godot = {
type = "server",
host = "127.0.0.1",
port = 6006,
}
dap.configurations.gdscript = {
{
type = "godot",
request = "launch",
name = "Launch scene",
project = "${workspaceFolder}",
launch_scene = true,
},
}
when I run dap now I get this error.
Error executing vim.schedule lua callback: ...local/share/nvim/lazy/nvim-dap-ui/lua/dapui/controls.lua:14: attempt to index local 'element' (a nil value)
stack traceback:
...local/share/nvim/lazy/nvim-dap-ui/lua/dapui/controls.lua:14: in function 'enable_controls'
...ie/.local/share/nvim/lazy/nvim-dap-ui/lua/dapui/init.lua:308: in function 'open'
/home/jamie/.config/nvim/lua/custom/configs/nvim-dap.lua:6: in function 'c'
...amie/.local/share/nvim/lazy/nvim-dap/lua/dap/session.lua:964: in function <...amie/.local/share/nvim/lazy/nvim-dap/lua/dap/session.lua:962>
and if i press enter
Debug adapter didn't respond. Either the adapter is slow (then wait and ignore this) or there is a problem with your adapter or `godot` configuration. Check the logs for errors (:help dap.s
et_log_level)
:DapShowLog is empty and :LspInfo shows gdscript and Godot as connected
dap runs and does breakpoints fine with godot
Hello all my nvim dap works fine with godot, but as soon as I installed dapui I am getting errors, I am using nvchad here's my plugin.lua snippet.
and my custom/configs/nvim-dap
when I run dap now I get this error.
and if i press enter
:DapShowLog is empty and :LspInfo shows gdscript and Godot as connected dap runs and does breakpoints fine with godot