Skip to content

Coloring on Powershell broken #1237

@chrisoro

Description

@chrisoro

Summary

When installing hooks, the coloring on Powershell is broken. This only happen on install, the coloring on prek run is fine.

  • It does work with cmd (Version 10.0.26200.7462)
  • It doesn't work with builtin Powershell (5.1.26100.7462) or the optional updated one (7.5.4)

Seems to be a Windows only issue, on my mac and linux based systems it works just fine with various shells.

I uploaded a video so you can see it, looks like some ascii encoding issues? First you see that it works on cmd and then the issues in ps https://streamable.com/3h4cni (video will be gone in 2 days)

Platform

Windows 11 25H2 x86_64

Version

prek 0.2.22

.pre-commit-config.yaml

No response

Log file

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions