Open zhongjn opened 2 years ago
Welcome to the FAKE community! Thank you so much for creating your first issue and therefore improving the project!
The root cause shold be:
Trace
is not thread-safe, since ConsoleTraceListener
is not thread-safe:Could we simply make ConsoleTraceListener
thread-safe to fix this problem? If so, i could make a PR to fix this.
Thanks for reporting. Can you please use the create process API instead? Since the asyncShellExex
is marked with an obsolete attribute. https://github.com/fsprojects/FAKE/blob/79aa1273d0311595bd404be5721d994301774552/src/app/Fake.Core.Process/Process.fs#L826-L829
Description
While running commands with
Shell.Exec
, output from stdout or stderr gets wrong.Repro steps
Step A Prepare a bash script
err.sh
:Step B Use
Shell.Exec
to execute the bash script. I executed the script multiple times here to make the problem more obvious.Expected behavior
Output are colored accordingly. Lines are not messed up.
Actual behavior
Known workarounds
Please provide a description of any known workarounds.
Related information