thheller / thheller/shadow-cljs
Don't colorize output running in Powershell
Open
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 2.4k
- Forks
- 192
- Avg merge
- 3h 11m
- Merged PRs (30d)
- 1
Description
Should be able to detect that at runtime. Output is horrid otherwise.
[1m------ WARNING #1 - :undeclared-var --------------------------------------------[0m
File: C:\Users\thheller\code\tmp\shadow-0-compiled\src\workshop\client.cljs:4:27
--------------------------------------------------------------------------------
[2m 1 | (ns workshop.client)[0m
[2m 2 | [0m
[2m 3 | (defn run [][0m
[1m 4 | (js/console.log "start" (Date.)))[0m
---------------------------------^----------------------------------------------
[33;1mUse of undeclared Var workshop.client/Date[0m
--------------------------------------------------------------------------------
[2m 5 | [0m
[2m 6 | (defn ^:dev/after-load start! [][0m
[2m 7 | (run))[0m
[2m 8 | [0m
--------------------------------------------------------------------------------
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name a source file or test. Start by locating the warning-output path and its colorization logic, then identify how the runtime environment can distinguish PowerShell; done means warning output in PowerShell no longer contains ANSI color codes while other environments retain their behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure, powershell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100