`cabal run` should send info logging to stderr not stdout
Open
attention: pr-welcome
cabal-install: cmd/run
re: error-message
type: bug
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
`cabal run` prints stuff like "up to date" to stdout. So running an executable and `cabal run` an executable give different output to stdout, which is no good when the executable is producing output for e.g. machine consumption. We should do our info logging to stderr.
Contributor guide
Research direction
Start by tracing how `cabal run` emits its informational messages and handles stdout versus stderr. Verify that the executable's stdout remains clean for machine consumption while messages such as "up to date" are sent to stderr.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100