rust-lang / rust-lang/rust-by-example

Stderr & stdout can't be displayed at the same time

Open
#1,174 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Handlebars
Stars
8.1k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

This is also an issue with compile warnings (not sure if they go to stderr).

In 18.1 & 18.2 when it panics it displays the error from the panic & from the compilation. However, it does not display any output from the program. Giving output of the program shows where the program got up to before it panics and gives a better understanding of what is going on.

In 4 & 5.1 it tells the user try to fix things/try to break things in order to see compiler warnings. These compiler warnings are not seen, instead just the program output is shown. This could be fixed by when running the rust code to turn those warnings into errors, but not sure if that is best.

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 by tracing how the live code editor captures and displays compiler warnings, program stdout, and panic stderr. Compare the behavior described for examples 18.1 and 18.2 with 4 and 5.1; done means program output, compiler warnings, and panic errors can be displayed together.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.