-
Notifications
You must be signed in to change notification settings - Fork 989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Various commands don't work while conan's (python's?) stdout is piped #16609
Comments
Hi @MikhailShostak, thank you for your detailed review of your issue and for creating a repository to easily setup the environment! I've just compiled it and tested it locally in a MacBook Pro M3 Max with this environment:
And I'm not being able to reproduce your issue. This are some of the tests I've done:
Did you have the chance to test it with a different OS? |
hey @perseoGI, I guess it's Windows only issue. Tried on Ubuntu 22.04.3 LTS under WSL. it works fine there. |
I see... @memsharded could you check it on Windows? |
It doesn't seem a problem in Conan, but Conan execution is basically getting Changing the wrapper code to: boost::process::child c(cmd, boost::process::std_out > pipe_stream, boost::process::std_err > stderr); fixes it. |
@memsharded, yeah, just came up to the similar conclusion. reproduced this issue with WinAPI implementation as well. https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/ns-processthreadsapi-startupinfoa I think the workaround with setting up another pipe works for me. |
No, I don't think so, most of the Conan informational messages, very necessary to understand what is happening, goes to Probably not worth doing anything else, it is the first time in year that I see this use case of a wrapper not providing |
#17507 adds a new |
Describe the bug
When I try to use conan from my app to get information about packages it returns an error.
conan list
andconan search
commands are affected by this bug, maybe something else.OS: Windows 11 23H2
Python: 3.12.4
Compiler: Visual Studio 2022 17.10.3 (MSVC 19.40.33811)
Conan Version: 2.4.1.
Note: I didn't have this on 2.0.9, but recent update in Visual Studio versioning forced me to update conan.
How to reproduce it
The bug can be reproduced with simple app like this:
Output:
Repro on GitHub Actions:
https://github.com/MikhailShostak/conan-stdout-bug/actions/runs/9792674178/job/27039011852#step:7:9
The text was updated successfully, but these errors were encountered: