-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
Output streaming doesn't work on briefcase dev
#891
Comments
I'm pretty sure I saw it before that on Windows. Specifically, I was trying to run |
I actually encountered this when I added Taking another look at this... Initially, I thought this was Rich buffering the output. However, the buffering for Rich's The buffering must be happening before Rich. When I add This is my best guess anyway. |
Run Python with unbuffered output via subprocess (Fixes #891)
Ran into this with the BeeWare tutorial (https://docs.beeware.org/en/latest/tutorial/tutorial-2.html) Nothing happens when you send a
|
@richstokes Yeah - that's effectively the fix that we've applied in #892. Apologies for the confusion during the BeeWare tutorial. |
print()
(and other stdout content) isn't reflected in the console when runningbriefcase dev
.To Reproduce
Steps to reproduce the behavior:
briefcase dev
There's no error, but:
stderr content is printed to the console.
Expected behavior
print()
statements should be reflected in the console.Environment:
Additional context
Possibly introduced by 390ccb3?
If you disable
stream_output=True
on the invocation that starts the dev process, console output is restored; however, you lose the contents of stdout in the log file.This doesn't appear to impact
briefcase run
, as full apps have very different processes for managing logs.The text was updated successfully, but these errors were encountered: