You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In PkgConfig tool there is the _parse_output method which executes pkg-config, it redirects the stdout but leaves the stderr stream to the terminal.
When using PkgConfig and catching the ConanException we end up having stderr in the terminal, which is not desirable.
I would propose to redirect stderr as well in run(), save it and print it as part of the exception message in fill_cpp_info().
Have you read the CONTRIBUTING guide?
I've read the CONTRIBUTING guide
The text was updated successfully, but these errors were encountered:
I think it makes sense, I am proposing PR #17020 to implement this (together with some extended cmd, stdout and stderr reporting if the exception is raised)
What is your suggestion?
In PkgConfig tool there is the
_parse_output
method which executes pkg-config, it redirects the stdout but leaves the stderr stream to the terminal.When using PkgConfig and catching the ConanException we end up having stderr in the terminal, which is not desirable.
I would propose to redirect stderr as well in
run()
, save it and print it as part of the exception message infill_cpp_info()
.Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: