Ask.run() does not flush stdout before waiting for input #156
Labels
No Label
IMAP
JMAP
Maildir
Retired
User Experience
User Interface
bsd
bug
contacts
currently worked on
documentation
duplicate
easy
enhancement
help wanted
invalid
linux-gnu
macos
mbox
notmuch
question
security
wishlist
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: meli/meli#156
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
When meli is executed without a configuration or with an incomplete configuration, it uses Ask.run() to ask the user about setting some defaults.
It prints the question to stdout without a newline, and stdout is buffered on many systems. So meli appears to hang when it's waiting for an answer to the question that the user has not seen yet.
explicitly flushing stdout after using the print macro fixes this.
This tracker would not let me attach a patch, so it's here:
https://paste.sr.ht/~tuxpup/cf4617c9227c67c55488917e0232094875316a28
Closed by
330a2b20ed