Open MijikHna opened 1 year ago
Hi @MijikHna ,
Could you try to log the output of config
in
dap.run(config)
in
lua/jester/init.lua:184
?
I have added dap.run(config)
after line 184 now init.lua
looks like this
...
if string.match(value, "$file") then
runtimeArgs[key] = runtimeArgs[key]:gsub("$file", file)
local config = vim.tbl_deep_extend('force', o.dap, { type = type, request = request, cwd = cwd, runtimeArgs = runtimeArgs })
dap.run(config)
end
...
On starting debugger I get following error
E5108: Error executing lua /home/kirill/.config/nvim/plugged/nvim-dap/lua/dap.lua:470: attempt to index field 'config' (a nil value)
stack traceback:
/home/kirill/.config/nvim/plugged/nvim-dap/lua/dap.lua:470: in function 'run'
...e/kirill/.config/nvim/plugged/jester/lua/jester/init.lua:193: in function 'cb'
...e/kirill/.config/nvim/plugged/jester/lua/jester/init.lua:288: in function 'cb'
/home/kirill/.config/nvim/plugged/nvim-dap/lua/dap.lua:651: in function 'terminate'
/home/kirill/.config/nvim/plugged/nvim-dap/lua/dap.lua:694: in function 'terminate'
...e/kirill/.config/nvim/plugged/jester/lua/jester/init.lua:287: in function 'terminate'
...e/kirill/.config/nvim/plugged/jester/lua/jester/init.lua:303: in function 'debug'
[string ":lua"]:1: in main chunk
but the debugger starts and still always runs first executed test.
As nvim-dap repo suggests to use vscode-dap I have switched to vscode-dap. Also I have adjusted
jester
setup a accordingly. Here is my jester setup.also I have following mappings
jester.run()
works like expected byjester.debug()
executes always the first debugged test. I always need to restart nvim to be able to debug second test.