could not run `quit` on child process despite calling `quit`
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 391
- Forks
- 69
- Avg merge
- 1d 34m
- Merged PRs (30d)
- 2
Description
Hello,
I'm having trouble shutting down the bash shell I've spawned after I'm done.
I'm shutting down the session using the following and I've tried various combinations of the 3 commands below without luck on this error.
println!("Project template ready");
session.send_control('c')?;
session.send_line("exit")?;
session.send_line("quit")?;
And yet my logs show
Project template ready
Waiting for envio process to exit...
Envio process (PID: 39748) exited with code 1
thread 'envio_utils::project::tests::test_project_lifecycle' panicked at /Users/drew/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rexpect-0.6.0/src/session.rs:356:37:
could not run `quit` on child process
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
test envio_utils::project::tests::test_project_lifecycle ... FAILED
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at rexpect-0.6.0/src/session.rs:356 and reproduce the failure from envio_utils::project::tests::test_project_lifecycle using the shown send_control and send_line calls. The report does not specify the expected shutdown behavior or an acceptance condition, so the desired change must be clarified before work can be considered done.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash, rust
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100