You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using overseer.nvim+toggleterm.nvim+neotest+neotest-plenary, and writing test for my neovim plugin.
I write xxx_spec.lua and run it via :lua require("neotest").run.run(vim.fn.expand("%")) but failed with error zsh: parse error near `)' , here is the output of toggleterm terminal window
Neovim version (nvim -v)
NVIM v0.10.0-dev
Operating system/version
Linux
Describe the bug
Issue
I am using
overseer.nvim
+toggleterm.nvim
+neotest
+neotest-plenary
, and writing test for my neovim plugin.I write
xxx_spec.lua
and run it via:lua require("neotest").run.run(vim.fn.expand("%"))
but failed with errorzsh: parse error near `)'
, here is the output oftoggleterm
terminal windowWhat is the severity of this bug?
breaking (some functionality is broken)
Steps To Reproduce
nvim -u repro.lua xxx_spec.lua
:lua require("neotest").run.run(vim.fn.expand("%"))
Expected Behavior
I guess this is a issue of escaping a single quoted string. There is a question in stackoverflow https://stackoverflow.com/questions/1250079/how-to-escape-single-quotes-within-single-quoted-strings
Here are two solutions:
Support escape single quoted
Should we add a test case in
tests/shell_spec.lua
?Change escape method to weak (double quote)
or change
shell.escape_cmd
method oflua/overseer/strategy/toggleterm.lua
to weak to avoid this issueoverseer.nvim/lua/overseer/strategy/toggleterm.lua
Lines 72 to 74 in b04b0b1
Minimal example file
Minimal init.lua
Additional context
Thanks
The text was updated successfully, but these errors were encountered: