-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
First, thanks for your work on this project!
I have been using it on-and-off for a while, and after picking up Elixir after a break I noticed that I could no longer run tests via neotests. It worked before, so I suppose there was some change that introduced this problem recently (maybe in neovim 0.11?).
Problem description
Whenever my cursor is inside an Elixir test and I trigger neotest-elixir, the following error is shown by neovim:
Vim:E730: Using a List as a String
I could trace the problem back to my neotest-elixir configuration, and it turns out the current project README has the same problem.
Problematic line from README:
require("neotest-elixir")({
-- The Mix task to use to run the tests
-- Can be a function to return a dynamic value.
-- Default: "test"
mix_task = {"my_custom_task"}, -- <== HERE
Fix:
require("neotest-elixir")({
-- The Mix task to use to run the tests
-- Can be a function to return a dynamic value.
-- Default: "test"
mix_task = "my_custom_task", -- <== HERE
Environment
- macOS (Apple Silicon)
- neovim 0.11.0
- neotest-elixir at commit
a242aeb
Metadata
Metadata
Assignees
Labels
No labels