You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when providing editor like nano or (n)vim
during a cherry pick conflict resolution I never get to the listing of files
to resolve
it hangs one step before.
And waits for a stdin input, which is understandable because nvim as any terminal editor is operating in interactive mode
and expecting stdin to be continuously fed.
Since child_process.spawns default stdio option is pipe it creates an indirection layer between parent and child pipes, making nvim or any other editor hang disconnected while waiting for any input.
One way of fixing this would be to add stdio: inherit to spawn, to remove the unnecessary pipe layer and connect child process to parent io pipes.
I already tested it and it indeed works. Let me know wdyt.
Thanks
The text was updated successfully, but these errors were encountered:
when providing editor like nano or (n)vim
during a cherry pick conflict resolution I never get to the listing of files
to resolve
it hangs one step before.
And waits for a stdin input, which is understandable because nvim as any terminal editor is operating in interactive mode
and expecting stdin to be continuously fed.
Since
child_process.spawn
s defaultstdio
option ispipe
it creates an indirection layer between parent and child pipes, making nvim or any other editor hang disconnected while waiting for any input.One way of fixing this would be to add
stdio: inherit
tospawn
, to remove the unnecessary pipe layer and connect child process to parent io pipes.I already tested it and it indeed works. Let me know wdyt.
Thanks
The text was updated successfully, but these errors were encountered: