Skip to content

🐛 --colors option broken #3824

@hyperknot

Description

@hyperknot

Environment information

pnpm biome rage
CLI:
  Version:                      1.8.3
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           macos

Environment:
  BIOME_LOG_DIR:                unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v20.17.0"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "pnpm/9.9.0"

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    false
  VCS disabled:                 true

Workspace:
  Open Documents:               0

What happened?

--colors option is broken in CLI

  1. Autodetect doesn't detect piped output with | cat, it still sends color characters.
  2. --colors=off doesn't turn colors off (might be the actual reason behind 1.)

Currently the output cannot be grepped correctly, because of all the decoration characters beint sent to grep, etc.

Expected result

Colors should turn off either with | cat or with --colors=off

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

Labels

A-CLIArea: CLIS-Bug-confirmedStatus: report has been confirmed as a valid bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions