Does anyone know if there's any code outside `<htt...
# development
g
Does anyone know if there's any code outside
<http://console_ui.rs|console_ui.rs>
that fiddles with terminal settings? There's a few issues around ~streaming output from process so I did some hacky setup that just digs out logs and streams them out under the progress bar of the workunit. This works OK outside pants, but in Pants it's broken prints lots of extra content. I suspected the stderr printing would maybe affect it, but that wasn't it.
The video shows my very simplistic case that works on its own; but the same approach in Pants prints out the bar again...
Copy code
⠠ 1.74s Generate OCI Archive: src.container/11_6_1-cudnn8-devel-ubuntu20_04.d
        Copying blob sha256:b1e7941cb3f6c65687539f5be97f1f9570de7290ea3eb16f2b86a3da4ff03244
        Copying blob sha256:659b95fa8a28334d1ce2e5172b41c195b2fc365c7da70ed1aee4c4dfcca7174f
⠤ 1.74s Generate OCI Archive: src.container/11_6_1-cudnn8-devel-ubuntu20_04.d
        Copying blob sha256:b1e7941cb3f6c65687539f5be97f1f9570de7290ea3eb16f2b86a3da4ff03244
        Copying blob sha256:659b95fa8a28334d1ce2e5172b41c195b2fc365c7da70ed1aee4c4dfcca7174f
⠤ 1.74s Generate OCI Archive: src.container/11_6_1-cudnn8-devel-ubuntu20_04.d
        Copying blob sha256:b1e7941cb3f6c65687539f5be97f1f9570de7290ea3eb16f2b86a3da4ff03244
        Copying blob sha256:659b95fa8a28334d1ce2e5172b41c195b2fc365c7da70ed1aee4c4dfcca7174
(Found the issue... Pants pinned versions of indicatif/console are a bit older so there's a bug in one of them, likely indicatif... Will bump that as a separate PR; and probably refactor this a bit to separate prodash/indicatif a bit into submodules; it's a bit messy as is. 🙂)