You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regression: upgrade and import no longer print anything to the console. #1586
After #1527, winget upgrade --all and winget import no longer print anything to the console if they have stuff to install.
Steps to reproduce
Compile/install the latest master branch.
Use wingetdev import <file> or, if you have something outdated installed, wingetdev upgrade --all
Expected behavior
It prints stuff to the console.
Actual behavior
Except for momentary flashes of the spinner, nothing is printed. This happens in both the standard terminals (cmd.exe/powershell.exe) and Windows Terminal.
(I apologize if this is bad form, but I was working on a solution to #1566 when I noticed this. I stepped through it a few times but it wasn't obvious what was going wrong. I figured Akinwale Alagbe (@hackean-msft) might know before I did.)
Parsec.2021-10-13.08-29-57_Trim.mp4
Environment
[winget --info]
Windows Package Manager version ??? (it identifies itself as v1.0.2, but it's the latest master branch)
Windows: Windows.Desktop version 22000.258
Package: Microsoft.DesktopAppInstaller version ???
Any other software?
The main output stream that controls all write operation is never cloned when the main context is cloned, this causes the output stream to be disabled upon the destruction of a subcontext(because we disable the output stream to prevent multiple background jobs from writing to the output stream, when user force terminates). A pull request has been submitted to address the issue, allowing disabling of the output stream only through forceful termination.
Activity
hackean-msft commentedon Oct 13, 2021
The main output stream that controls all write operation is never cloned when the main context is cloned, this causes the output stream to be disabled upon the destruction of a subcontext(because we disable the output stream to prevent multiple background jobs from writing to the output stream, when user force terminates). A pull request has been submitted to address the issue, allowing disabling of the output stream only through forceful termination.