-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
async vim.loop calls with coroutines block tests #542
Comments
gregorias
changed the title
async vim.loop calls wit coroutines block tests
async vim.loop calls with coroutines block tests
Nov 22, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using async vim.loop functions (not the Plenary async ones) block Plenary's test harness.
Reproduction
Have the following files in a directory:
Run
make test
. This will get printed:and the run will hang and never finish.
Expected behavior
make test
finishes successfully.Notes
There's an issue on testing async code, #424. The solution provided there works with code that uses
vim.defer_fn
orvim.schedule
. It doesn't work withvim.loop
functions.Synchronous
vim.loop
functions work just fine.The text was updated successfully, but these errors were encountered: