nvim-neotest / neotest

An extensible framework for interacting with tests within NeoVim.
MIT License
2.44k stars 123 forks source link

Dap debug failed with: Adapter doesn't support chosen strategy #222

Closed tubzby closed 1 year ago

tubzby commented 1 year ago

I use neotest-go and neotest-rust, when I hove to the test function and run:
require("neotest").run.run({strategy = "dap"})

it prints:

Adapter doesn't support chosen strategy

I have setup dap already and it works with my main entry.

rcarriga commented 1 year ago

This is saying the neotest adapter (not the DAP adapter) doesn't support debugging. Those projects must implement debugging support

tilupe commented 1 year ago

I have now the same issue with C#. Previously everything worked fine. Is the a problem of neotest or from neotest-dotnet or is it my config?

rcarriga commented 1 year ago

This is because neotest-dotnet changed its dap implementation, this should be fixed soon with recent changes to neotest.

See https://github.com/nvim-neotest/neotest/discussions/24#discussioncomment-5641606