rust-cli / rust-cli/rexpect

could not run `quit` on child process despite calling `quit`

Open
#135 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.