Closed yehuohan closed 1 year ago
Thanks, this patch couldn't fully reset the internal status.
So I implemented a new one: https://github.com/skywind3000/asyncrun.vim/commit/a7a83c1ecdcd54636247454694ddd5d9086e3b68
Thanks anyway
Thanks, this patch couldn't fully reset the internal status.
So I implemented a new one: a7a83c1
Thanks anyway
It seemed there are some issue with my testing with the https://github.com/skywind3000/asyncrun.vim/commit/a7a83c1ecdcd54636247454694ddd5d9086e3b68.
I tested with the code below:
int main(int argc, char *argv[]) {
return -1;
}
But when AsyncReset
was executed, a issue raised:
Awesome plugin! We all dislike to run terrible code, but there will still be some case like #204 and we have to restart (neo)vim instance. So I think it's great to have an
AsyncReset
command to reset internal state forcely and ignore the crashed process directly.@skywind3000 Are you willing to merge this PR to provide a reset command, which may have some corner negetive effect though (e.g. The crashed progress is allocating memory crazily).
Or could you give some comments on the function
asyncrun#reset
below, which just reset two script variable forcely?