Skip to content

repl: strange regression in output colors #17086

Closed

Description

@vsemozhetbyt
  • Version: 8x-9x
  • Platform: Windows 7 x64
  • Subsystem: util

Compare the outputs of various versions in cmd.exe, pay attention to the string value color:

04 8

06 12

08 9

09 2

10 0

Activity

  1. added
    util
    on Nov 16, 2017
  2. added
    repl
    windows
    and removed
    util
    on Nov 16, 2017
  3. addaleax commented on Nov 16, 2017

    @addaleax
    Member

    @nodejs/platform-windows

  4. changed the title [-]util: strange regression in output colors[/-] [+]repl: strange regression in output colors[/+] on Nov 16, 2017
  5. seishun commented on Nov 17, 2017

    @seishun
    Contributor

    The regression was originally introduced in 4fb27d4. (PR: #9266) cc @srl295

  6. seishun commented on Nov 17, 2017

    @seishun
    Contributor

    And it was fixed in 90a4390 (PR: #16485), which is semver-major. Not sure how. cc @bnoordhuis

  7. lance commented on Nov 20, 2017

    @lance
    Member

    Per @seishun notes of the commits, perhaps { colors: true } here is responsible for the fix. And though I don't quite understand why this would change the output formatting, the process.versions property was modified here.

  8. vsemozhetbyt commented on Dec 23, 2017

    @vsemozhetbyt
    ContributorAuthor

    FWIW, the output in v10 (nightly and canary) is colorless as well.

  9. seishun commented on Dec 24, 2017

    @seishun
    Contributor

    The regression was introduced again in 727339e (PR: #17565). cc @bnoordhuis

  10. added
    confirmed-bug
    regression
    on Dec 24, 2017
  11. removed
    windows
    on Dec 25, 2017
  12. bnoordhuis commented on Dec 25, 2017

    @bnoordhuis
    Member

    No, the bug that hid the regression was fixed again. :-)

    I don't quite understand why this would change the output formatting, the process.versions property was modified here.

    Close, it's the custom formatter on this line, which is unnecessary. I'll open a PR.

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

    confirmed-bugregressionrepl

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions