track issues in neovim related with luv
zhaozg opened this issue · 4 comments
This mainly because of default behavior of luv will exit when error occurs in callback.
Lines 707 to 724 in bc01ad8
There are three opportunity or choice to handle this kind things.
1. The Lua developer
has duty to write safe callback code.
2. The applications that use luv
can use can change luv default process by luv c api.
Lines 124 to 141 in bc01ad8
luv flags to control luv_CFpcall routine.
https://github.com/luvit/luv/blob/master/src/luv.h#L65-L93
3. luv
set default flag with LUVF_CALLBACK_NOEXIT
to avoid exit, continue to run but real errors
This is simplest way, but when luv
use as a network server live long time, this maybe hide some applications errors. I hope receive more recommendations about whether to enable this.
Let's try change default LUVF_CALLBACK_FLAGS to LUVF_CALLBACK_NOEXIT.
Let's try change default LUVF_CALLBACK_FLAGS to LUVF_CALLBACK_NOEXIT.
This just runs into #433 again, see #433 (comment) for the problem with it.
Note also that neovim does not use the default luv_cfpcall
, so fixing the non-string error problems on our end won't actually fix them for neovim.
Let's try change default LUVF_CALLBACK_FLAGS to LUVF_CALLBACK_NOEXIT.
This just runs into #433 again, see #433 (comment) for the problem with it.
I almost forget that.