Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.

feat(ChildProcessStream): capture exit code on exit#58

Open
vigoux wants to merge 1 commit into
neovim:masterfrom
vigoux:exit_code
Open

feat(ChildProcessStream): capture exit code on exit#58
vigoux wants to merge 1 commit into
neovim:masterfrom
vigoux:exit_code

Conversation

@vigoux

@vigoux vigoux commented Jul 1, 2022

Copy link
Copy Markdown

As discussed here.

cc @justinmk

@vigoux

vigoux commented Jul 1, 2022

Copy link
Copy Markdown
Author

I somehow can't run the tests locally though/

@vigoux

vigoux commented Jul 1, 2022

Copy link
Copy Markdown
Author

I ran the tests, but for some reason I can't make it work ?

@justinmk

justinmk commented Jul 1, 2022

Copy link
Copy Markdown
Member

do you mean , the test fails?

Comment thread test/session_spec.lua Outdated
@vigoux

vigoux commented Jul 1, 2022

Copy link
Copy Markdown
Author

Should be all good now.
The problem is that we have to force the uv loop to run a bit in order to get the exit code.

Comment thread nvim/child_process_stream.lua Outdated
Comment thread test/session_spec.lua Outdated
Comment thread test/session_spec.lua Outdated
@vigoux

vigoux commented Jul 1, 2022

Copy link
Copy Markdown
Author

So, this does not work (again), and this time I really don't know why.
I don't have more time at hand for now, I'll dig into this later.

Comment thread test/session_spec.lua
end)

it("can can capture signal", function()
session:close "kill"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is uv.run() needed here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test does not pass for now, but it was needed in the exit code test.

@justinmk

justinmk commented Jun 30, 2023

Copy link
Copy Markdown
Member

Related/duplicate: #44

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants