Skip to content
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

Conan 2: CMake output is not streamed #78

Closed
markfinal opened this issue Jun 29, 2023 · 1 comment
Closed

Conan 2: CMake output is not streamed #78

markfinal opened this issue Jun 29, 2023 · 1 comment
Assignees
Labels
bug Something isn't working conan2 For Conan 2.x
Milestone

Comments

@markfinal
Copy link
Owner

You only get to see the output once it's finished.

@markfinal markfinal added bug Something isn't working conan2 For Conan 2.x labels Jun 29, 2023
@markfinal markfinal added this to the v1.4.0 milestone Jun 29, 2023
@markfinal
Copy link
Owner Author

This is due to this in conans/util/runners.py because pipes are being used

        try:
            proc = subprocess.Popen(command, shell=shell, stdout=out, stderr=err, cwd=cwd)
        except Exception as e:
            raise ConanException("Error while running cmd\nError: %s" % (str(e)))

        proc_stdout, proc_stderr = proc.communicate()
        # If the output is piped, like user provided a StringIO or testing, the communicate
        # will capture and return something when thing finished

@markfinal markfinal self-assigned this Jul 14, 2023
markfinal added a commit that referenced this issue Jul 14, 2023
…g version

- the vanilla conan_run function uses subprocess Popen.communicate, and
so does not return any output until the subprocess is complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working conan2 For Conan 2.x
Projects
Development

No branches or pull requests

1 participant