CLICOLOR_FORCE forces too much clicolor #1171
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
awaiting
author
awaiting
contributors
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
diagnostics
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
Feature/S3
Importance
High
Importance
Low
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
Release Blocking
Non-urgent
Release Blocking
Urgent
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
Urgency
High
Urgency
Low
ux
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lix-project/lix#1171
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Not sure if this is a bug or a feature request. I'm running Lix inside another program that forwards Lix's output to stdout a line-buffered way. I want to have Lix emit colors in this situation so I set
CLICOLOR_FORCE=1, but fornix buildat least, this causes almost all of the output to be printed... weirdly. It's as if Lix is using escape sequences to manually reposition the cursor to print each line, because it mangles the output of the program it's running as a child of. This causes such output to get buffered and then emitted almost all at once only after Lix just about finishes. The sole exception is that I'm also passing--print-out-pathsin this situation, and the printed path appears normally (i.e. doesn't seem to be manually positioning the cursor).I think that CLICOLOR_FORCE being set (perhaps in addition to other configuration/state if necessary, such as stdout/stderr not being a TTY) should cause Lix to only emit styling escape sequences (colors, bold, italic, underline, hyperlinks, reset, etc.), and not stateful escape sequences (repositioning the cursor, entering/exiting alt mode, clear, etc.) as it currently seems to.
What
--log-formatis this using? Thenix-commanddefaultbar-with-logsI guess?This is with Lix at
35fbfea6f8and the full command used is, for example,nix build --no-link --print-out-paths --print-build-logs --file nix output.packages.default, and I don't have anything logging related in anynix.conffiles.