Skip to content

Print meson output in case of error during editable rebuild #750

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tobiasdiez
Copy link

In case there is an error during the call of meson build, it currently only prints

Traceback (most recent call last):
  File "/opt/conda/envs/sage-dev/lib/python3.11/site-packages/_sagemath_editable_loader.py", line 345, in _rebuild
    result = subprocess.run(
             ^^^^^^^^^^^^^^^
  File "/opt/conda/envs/sage-dev/lib/python3.11/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/opt/conda/envs/sage-dev/bin/ninja']' returned non-zero exit status 1.

in the console. This is not very helpful to diagonize the problem. With this PR, the full output of meson is printed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant