fix(cli): use mp.suspend for pixi_progress::println!#5459
fix(cli): use mp.suspend for pixi_progress::println!#5459Hofer-Julian merged 2 commits intoprefix-dev:mainfrom
mp.suspend for pixi_progress::println!#5459Conversation
|
I dont see how this fixes the issue? This is doing essentially the same thing? Should we not also deal with the hidden case? |
I think the |
|
but yeah I'm not sure if this breaks anything where we are calling |
or maybe it is still necessary, looking at https://docs.rs/indicatif/latest/indicatif/struct.ProgressBar.html#method.println |
|
Maybe just change the mp.println to mp.suspend then? |
I think the current implementation is more concise and probably effectively equivalent, but feel free to push a change. |
|
Can you confirm that this also still works when you run pixi with |
yep! scipy on 🎋 main is 📦 v1.18.0.dev0 via 🐍 via 🧚 v0.63.2 took 18s
❯ tixi run --no-progress ipython
✨ Pixi task (build in build): spin build --setup-args=-Dblas=blas --setup-args=-Dlapack=lapack --setup-args=-Duse-g77-abi=true: (Build SciPy (default settings))
$ meson compile -j 8 -C build
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /Users/lucascolley/ghq/github.com/scipy/scipy/.pixi/envs/build/bin/ninja -C /Users/lucascolley/ghq/github.com/scipy/scipy/build -j 8
ninja: Entering directory `/Users/lucascolley/ghq/github.com/scipy/scipy/build'
[2/356] Generating subprojects/highs/highs/HConfig.h with a custom command
$ meson install --only-changed -C build --destdir ../build-install --tags=runtime,python-runtime,tests,devel --skip-subprojects
✨ Pixi task (ipython in ipython): spin ipython --no-build: (Launch IPython)
$ export PYTHONPATH="/Users/lucascolley/ghq/github.com/scipy/scipy/build-install/usr/lib/python3.14/site-packages"
💻 Launching IPython with PYTHONPATH="/Users/lucascolley/ghq/github.com/scipy/scipy/build-install/usr/lib/python3.14/site-packages" |
|
@baszalmstra @Hofer-Julian @ruben-arts what do you think about merging this, and reverting if we notice any problems? |
|
@lucascolley I would like to test this locally before merging. Could you please point me at a reproducer? |
|
checkout https://github.com/scipy/scipy and resize your terminal after |
Hofer-Julian
left a comment
There was a problem hiding this comment.
I tested this locally, and it fixes the problem @lucascolley described.
Also, --no-progress behaves exactly as expected.
On top of that it actually deletes code, I will go ahead and merge this.
Thank you for your patience, Lucas!
Description
This PR fixes newline printing for some situations in the CLI.
Before (spaces):
After (newlines):
AI Disclosure
Tools: ChatGPT
Checklist:
schema/model.py.