Skip to content

Debug output is not displayed on STDERR #643

@Yewzir

Description

@Yewzir

What happened?

Currently, warnings and errors are displayed on STDOUT, but I think STDERR is a better choice for this. Colored output is unfortunately problematic in such a case. However, I suspect that colored output is intended, given similar output problems we've encountered in the past.

Current observation on STDOUT

      | �[38;2;255;000;000m┌─ expression started here�[0m
    2 | �[38;2;173;216;230m(�[0mimport std.Sys
    3 |
    4 | # Printing
    5 | �[38;2;144;238;144m(�[0mprint "Hello, World!"�[38;2;144;238;144m)�[0m
      | �[38;2;255;000;000m^�[0m
    6 |
    7 | # Looping
        Missing ')' in import `std.Sys'

Desired expectation on STDERR

      | ┌─ expression started here
    2 | (import std.Sys
    3 |
    4 | # Printing
    5 | (print "Hello, World!")
      | ^
    6 |
    7 | # Looping
        Missing ')' in import `std.Sys'

The most recent tags and base branch are listed below, but I fear the problem is present everywhere.

What ArkScript version are you seeing the problem on?

dev, v4.2.0, v4.1.2, v4.1.1

Operating System

Linux

Compiler used

GCC

Compiler version used

Alpine 15.2.0

Relevant code & log output

Documentation

  • I have read existing related documentation before submitting this report
  • I have searched for an existing issue before posting

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions