Open cpb opened 3 weeks ago
I get an error message:
Config needs the request property which must be one of attach or launch
request
attach
launch
https://github.com/user-attachments/assets/2c24dd53-6f5b-4e77-94e5-a910139d603f
nvim-dap-ruby
request = "attach",
get_strategy_config
exit code 1
error_on_failure = false
localfs = true,
waiting = 1000
neotest
dap
nvim-dap-ui
https://github.com/user-attachments/assets/e4839070-7c1c-4e4b-843e-e4bb2e89712b
Possible with the following Lazy configuration:
return { { "nvim-neotest/neotest", dependencies = { { "cpb/neotest-rspec", branch = "cpb/update-dap-strategy", }, "nvim-neotest/nvim-nio", "nvim-lua/plenary.nvim", "antoinemadec/FixCursorHold.nvim", "nvim-treesitter/nvim-treesitter", }, config = function() require("neotest").setup({ adapters = { require("neotest-rspec")({ rspec_cmd = function() return vim.tbl_flatten({ "bundle", "exec", "rdbg", "--nonstop", "-c", "--", "rspec", }) end, }), }, }) end, }, }
Do we want to add documentation to clarify the configuration options for getting debug to run?
debug
Why?
I get an error message:
https://github.com/user-attachments/assets/2c24dd53-6f5b-4e77-94e5-a910139d603f
What?
nvim-dap-ruby
's base ruby adapter configurations to resolve the above error message by addingrequest = "attach",
to the return ofget_strategy_config
exit code 1
notices fromnvim-dap-ruby
by configuringerror_on_failure = false
localfs = true,
andwaiting = 1000
configuration to match thenvim-dap-ruby
's base run configurationDemo
neotest
withdap
strategynvim-dap-ui
pops uphttps://github.com/user-attachments/assets/e4839070-7c1c-4e4b-843e-e4bb2e89712b
Possible with the following Lazy configuration: