Closed asfaltboy closed 1 month ago
Please provide a minimal reproducible Go test example.
Check out https://github.com/golang-jwt/jwt , run go build ./...
to make sure it builds, then run neovim in the dir and execute a debug test.
I cloned down the repo, found a test at random and tried to both run it and then debug it. Works on my machine 😄
It feels like this could be a configuration issue on your end...?
Since LazyVim is already using neotest-golang, I could quite easily try it out here too, and it works for me:
Could it be that you haven't enabled debugging in your neotest-golang config with dap_go_enabled = true
?
What happens if you run :checkhealth neotest-golang
?
Did you check docs and existing issues?
Neovim version (nvim -v)
0.10.0
Operating system/version
macOS 14.5
Describe the bug
neotest-golang runs a single test, but cannot start debugger for the same test.
Note: neotest-go starts the debugger (though it runs for all tests in the module 😢 ), but neotest-golang fails with an error:
Steps To Reproduce
Expected Behavior
Should run the debugger
Your Lua setup