-
Notifications
You must be signed in to change notification settings - Fork 2
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
Bug: assert(not coroutine.running())
in sync
API
#7
Comments
assert(not coroutine.running())
in sync
I just reproduced this bug in linrongbin16/gitlinker.nvim#262, I think it worth some attention. |
assert(not coroutine.running())
in syncassert(not coroutine.running())
in sync
API
This repo is in the process of a complete rewrite so this issue might not apply after that. |
Thank you for the updates! |
I've merged in all the v2 code now. It's not yet finished, but is much higher quality than what was on |
Hi,
In current implementation, there is an issue: linrongbin16/gitlinker.nvim#257
@loganswartz found it is always failed on this line (on fedora 41, but worked on MacOS M1 and ubuntu 20.04):
https://github.com/linrongbin16/gitlinker.nvim/blob/df0c4e342742812186f87e32caf82b3e5e288a84/lua/gitlinker/commons/async.lua#L78
I found the comments says there is a API break change in
coroutine.running()
between lua51 and lua52:async.nvim/lua/async.lua
Lines 16 to 23 in ad097c9
In a previous version, there's a
M.running()
to handle this:And there is a
strict
parameter to tolerate some errors:The text was updated successfully, but these errors were encountered: