Skip to content

Error message of TERM=dumb zig run x.zig is missing more than just color #12091

Description

Zig Version

0.10.0-dev.2836+2360f8c49

Steps to Reproduce

pub fn main() {}
TERM=dumb zig run x.zig

Expected Behavior

x.zig:1:15: error: expected return type expression, found '{'
pub fn main() {}
              ^

(without color)

Actual Behavior

x.zig:1:15: error: expected return type expression, found '{'

(no color (expected) and the error message is missing the source code and the caret (unexpected))

The output for dumb terminals can be improved to be on par with the output for non-dumb terminals, without escape sequences.

GCC gets it right:
image

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorfrontendTokenization, parsing, AstGen, Sema, and Liveness.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions