Skip to content

No ANSI colors in turbo run output on Windows #11714

@lem0n4id

Description

@lem0n4id

Verify canary release

  • I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

https://github.com/vercel/turborepo/tree/main/examples/basic

Which canary version will you have in your reproduction?

turbo@2.8.3-canary.9

Environment information

• turbo 2.8.3-canary.9
CLI:
   Version: 2.8.3-canary.9
   Path to executable: C:\Users\<path>\learnin10\node_modules\turbo-windows-64\bin\turbo.exe      
   Daemon status: Not running
   Package manager: npm

Platform:
   Architecture: x86_64
   Operating system: windows
   WSL: false
   Available memory (MB): 8437
   Available CPU cores: 22

Environment:
   CI: None
   Terminal (TERM): xterm-256color
   Terminal program (TERM_PROGRAM): vscode
   Terminal program version (TERM_PROGRAM_VERSION): 1.109.0
   Shell (SHELL): C:\Program Files\Git\usr\bin\bash.exe
   stdin: false

Expected behavior

Colorized output should render in the terminal (similar to when running tasks directly).

Screenshot of expected behavior (ran by cding into apps/web):

Image

Actual behavior

Output appears uncolored (no ANSI colors).

Screenshot:
Image

To Reproduce

  1. Scaffold a basic example using npx create-turbo@latest
  2. In the options, choose npm as package manager
  3. Open in a code editor and remove "ui": "tui", from turbo.json
  4. Run using turbo dev

Notice that that colors are not visible.

Additional context

The colors are visible with the tui mode. Without it, the colors are not visible.

I tried in cmd, powershell and git bash too.

cmd version

Microsoft Windows [Version 10.0.26100.7623]
ComSpec=C:\WINDOWS\system32\cmd.exe

powershell version

Name                           Value
----                           -----
PSVersion                      5.1.26100.7462
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.26100.7462
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

git bash version

Git Bash environment (uname -a): MINGW64_NT-10.0-26100 … Msys
Bash: GNU bash, version 5.2.26(1)-release (x86_64-pc-msys)
Git for Windows: git version 2.44.0.windows.1

Possibly related issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions