Skip to content

Cargo buffers stdout even with TERM=dumb #6641

Closed as not planned
Closed as not planned
@RalfJung

Description

@RalfJung

Problem

Even with TERM=dumb, cargo buffers stderr stdout, meaning I do not see things printed to stdout without a trailing \n.

For Miri, we use cargo rustc set up RUSTC_WRAPPER such that we can intercept the call that builds a binary, to instead run it with Miri. Unfortunately, if the application prints to stdout, that output is buffered by Cargo. This is a problem in particular when running a test suite, because it means I cannot see which test is taking long when the test suite just stops.

Possible Solution(s)

When Cargo prints no progress bar, it should leave stdout of the running application entirely unmodified, and not introduce any additional line buffering.

Notes

Output of cargo version: cargo 1.34.0-nightly (2458180 2019-01-27)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-console-outputArea: Terminal output, colors, progress bar, etc.C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions