mesonbuild / meson

The Meson Build System
http://mesonbuild.com
Apache License 2.0
5.65k stars 1.64k forks source link

stderr must be used to print errors #10692

Open trufae opened 2 years ago

trufae commented 2 years ago

Describe the bug

Error messages are not printed if you redirect stdout

To Reproduce

0$ :> meson.build
0$ meson > /dev/null
1$ meson

ERROR: Must specify at least one directory name.
1$

Expected behavior

standard output must be used only for logging, but error messages should be printed to stderr.

system parameters

$ meson --version
0.61.3
0$ uname -a
Darwin pancakes-MacBook-Pro-2.local 21.6.0 Darwin Kernel Version 21.6.0: Sat Jun 18 17:07:22 PDT 2022; root:xnu-8020.140.41~1/RELEASE_ARM64_T6000 arm64
0$
sla89 commented 2 weeks ago

No reaction on that one?

trufae commented 2 weeks ago

@sla89 meson 1.5.1 is still behaving like this, so yeah i guess no reactions or feedback on this

dcbaker commented 2 weeks ago

Patches are welcome