Closed wookayin closed 1 year ago
Looking at the source code, neotest.run.get_tree_from_args
is usually wrapped with async.run
as the function async.uv.fs_realpath
works asynchronously. Wrapping the function call in my config properly with neotest.async
solves the issue, but not sure why it was not throwing previously.
The get_tree_from_args
function is not a public facing function. It is an async function so it must be wrapped with async.run
. The fact that it worked before is just coincidental.
I see. Thanks. I found that this is a private function, but I don't think I had other choices to implement #50. Closing as we know why this error was happening.
NeoVim Version NVIM v0.9.0-dev-2887+g234b8c5f3 NVIM v0.8.1 and v0.7.0
Describe the bug When opening a neotest window or running neotest, an
attempt to yield across C-call boundary
error happens sometimes.where my
config/testing.lua
isTo Reproduce Please provide a minimal
init.lua
to reproduce which can be run as the following:You can edit the following example file to include your adapters and other required setup.
Steps to reproduce the behavior:
:lua require"neotest".run.get_tree_from_args({})
Expected behavior No errors. This function used to work well before updating neotest.
Logs No relevant logs
Additional context N/A