haskell / haskell/cabal

cabal run: "Preprocessing executable" message shouldn't be in stdout

Open
#4,652 15 comments 10 reactions 0 assignees View on GitHub
Cabal: other type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

The `Preprocessing executable 'X'...` message is currently written to stdout, even for `cabal run`. This contaminates `stdout`, so `cabal run` cannot be used with any program that outputs program-readable through `stdout` (e.g. Pandoc filters).

```
$ cabal run 2>/dev/null
Preprocessing executable 'X' for
Y...
Running X...
^C
$ cabal --version
cabal-install version 1.24.0.2
compiled using version 1.24.2.0 of the Cabal library
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.