Stderr output is shown after the build log rather than inline

Reported in Python: os.system("git clone") does not shows any output from command. Related: Stderr tty appears later in log / visual studio build tools + vswhere.

Test shows that stdout output is correctly displayed inline, but any stderr output is displayed at the end of the log, after the “Your build exited with…” message:

$ which python; python --version
python -c 'if True:
    import subprocess
    subprocess.check_call("echo bla-bla-bla", shell=True)
    subprocess.check_call("echo bla-bla-bla2 >&2", shell=True)
'
/c/ProgramData/chocolatey/bin/python
bla-bla-bla
The command "which python; python --version
python -c 'if True:
    import subprocess
    subprocess.check_call("echo bla-bla-bla", shell=True)
    subprocess.check_call("echo bla-bla-bla2 >&2", shell=True)
'" exited with 0.
Done. Your build exited with 0.
Python 2.7.9
bla-bla-bla2
2 Likes