-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected argument $0~/parsing/'
#75
Comments
I fixed it by using only hspec (it used tasty's arguments even though I was using hspec) in frameworks list. return {
"nvim-neotest/neotest",
dependencies = {
"mrcjkb/neotest-haskell",
"nvim-lua/plenary.nvim",
"nvim-neotest/neotest-plenary",
"nvim-treesitter/nvim-treesitter",
"antoinemadec/FixCursorHold.nvim",
},
cmd = "NeotestRun",
config = function()
require("neotest").setup({
adapters = {
require("neotest-haskell")({
build_tools = { "stack", "cabal" },
frameworks = {
"hspec",
-- "tasty",
-- "sydtest",
},
}),
require("neotest-rust"),
},
require("neotest-plenary"),
})
vim.api.nvim_create_user_command("NeotestRun", require("neotest").run.run, {})
end,
} |
Hey, thanks for reporting this! Glad you were able to find a workaround. Normally, you shouldn't have to disable the other frameworks for it to work with Hspec. Are you on the latest revision? If you use lazy.nvim, you can find that out by looking at the lock file. For the purpose of information, this is how the framework detection works:
|
Yes, I am using 0.8.0 version. I didn't have any mention of "tasty" in the project so I don't know why it was picked up. |
Do you have any other projects that use tasty? I'm asking in case the tree-sitter parser somehow got the contents from the wrong file and cached them. |
no I haven't heard of tasty before this issue, but I'm converting this very project to tasty now |
That'll hopefully solve it 😁 Please let me know if you run into any issues. |
Neovim version (nvim -v)
v0.9.0-dev-1347+gfd32a9875
Operating system/version
Arch btw
How to reproduce the issue
describe "parsing" $ do
)lua require("neotest").run.run()
source code:
https://github.com/bartoszluka/seal/blob/aafef2ea9590db3dd77053e17eee1f5b05b40b55/test/Spec.hs#L56
Expected behaviour
Expect command to be correct:
stack test --match ...
Actual behaviour
Weird
$0
in the command. Also if the tests are nested it looks like this:A minimal Neovim config used to reproduce this issue.
The text was updated successfully, but these errors were encountered: