Skip to content

README config example fails in neovim 0.11 with Vim:E730: Using a List as a String #48

@miguno

Description

@miguno

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions