Closed asfaltboy closed 6 days ago
Hi @asfaltboy and thanks for the report. I can't reproduce this on my end. What does your neotest config look like, and how do you register the load neotest-golang along with any options?
It looks like the go_test_args
option (here) is somehow set to nil
on your end, which is not a valid value.
Having the same issue with default config:
return {
{
"nvim-neotest/neotest",
dependencies = {
"nvim-neotest/nvim-nio",
"nvim-lua/plenary.nvim",
"antoinemadec/FixCursorHold.nvim",
"nvim-treesitter/nvim-treesitter",
"fredrikaverpil/neotest-golang",
},
config = function()
require("neotest").setup {
adapters = {
require "neotest-golang",
},
}
end,
},
}
Issue doesn't reproduce with 'extra everything' config from README
Thanks for the details. I believe I might have found the issue and I've pushed a PR.
Could you please help me out and see if this fixes this issue on your end? You can temporarily set the branch used in #63.
{
"fredrikaverpil/neotest-golang",
branch = "fix/options",
},
@fredrikaverpil yes, now it's fine. Thanks)
Many thanks for the confirmation @uroborosq, I'm glad to hear this got fixed on your end as well š„³
@asfaltboy I'm going to merge this fix in straight away as this was a significant mistake on my end. Please re-open this issue if it did not fix the problem on your end.
Did you check docs and existing issues?
Neovim version (nvim -v)
v0.10.0
Operating system/version
MacOS 14.5
Describe the bug
Whenever I try to run tests with latest version of nio, neotest, and neotest-golang, I see this error:
Whether I select a specific test, or all tests in a file. Same tests run ok when using neotest-go instead
Steps To Reproduce
Expected Behavior
Should run tests