Skip to content

line buffering in sage-logger causes "hang" due to invisible prompt when installing experimental packages #20884

@mkoeppe

Description

@mkoeppe

(Observed on Mac OS X.)

As I reported in #20708 comment:8:

When installing an "experimental" package, Sage warns a lot and then prompts the user.
Because of line buffering, one does not see the prompt, but Sage just waits indefinitely.

sage -f latte_int
...
[latte_int-1.7.3] =========================== WARNING ===========================
[latte_int-1.7.3] You are about to download and install an experimental package.
[latte_int-1.7.3] This probably won't work at all for you! There is no guarantee
[latte_int-1.7.3] that it will build correctly, or behave as expected.
[latte_int-1.7.3] Use at your own risk!
[latte_int-1.7.3] ===============================================================

<--- This is where it asks "[latte_int-1.7.3] Are you sure you want to continue [Y/n]?" but this is line-buffered and not visible to the user.

CC: @jdemeyer @embray @vbraun @kcrisman @dimpase @videlec @novoselt

Component: build

Author: Matthias Koeppe

Branch: 6888a67

Reviewer: Leif Leonhardy, Volker Braun

Issue created by migration from https://trac.sagemath.org/ticket/20884

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions