-
Notifications
You must be signed in to change notification settings - Fork 255
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
Multiple duplicate lines in choco console UI (but not log file) #933
Comments
I've been seeing this a lot in recent weeks. I'm using Windows 10, with Chocolatey 1.10 and ChocolateyGUI 1.0.0.0. It worries me when I see things like the below, as it looks like it's downloading and installing twice:
|
Indeed. That was the very reason my attention was grabbed by this bug. Downloading 600+ MB instead of 300+ MB would have been a huge waste of data. It was only after browsing the log that I realised this was not the case. |
I hit this the other day while testing some things. @gep13 want me to do anything here to bring this issue up? |
We can't just tell it not to append the logger. If we do that, we cause a regression of 697. But we can use the instance we already have, and just backup and restore the config.
Has this been fixed yet? Here's some more info on this bug: The duplicate lines increase every time you install Chocolatey GUI. I got 3 lines after the latest update, uninstalled the GUI, reinstalled the GUI, now I have 4 lines duplicated. This perhaps isn't just a bug with the program, but possibly some resident config setting that doesn't get cleaned, and duplicates itself every time you install the GUI. I don't know where these settings are hidden, so I have no idea how to clean them myself. |
@DefectiveByDesign unfortunately although we had hoped to get this fix into 1.1.0, the change I made in PR #954 introduced an even bigger and worse bug (in a certain scenario you lost all logging and all console output). However, knowing that the number of duplicate lines increases is good information. As for where the config is stored, we don't currently have it documented officially, but some of them are captured in a docs issue here: chocolatey/docs#303 |
@DefectiveByDesign You might be onto something. I'm 85–90% certain I've also un/reinstalled ChocolateyGUI in the past. It would've been a while back, though, hence the uncertainty. |
It isn't just reinstalling, billyjo, simply updating to a new version will do it. As for the config files, is it safe to delete them? What would be the protocol for a clean uninstall / reinstall? I don't really understand the reasoning behind chocolatey not having a clean uninstall. This behavior is well known to be problematic with various software. Drivers for instance, created a need for DDU, and there are various uninstall tools, which some charge money for, that will monitor software installation to do "true" uninstallation. Some other programs I've known to need special cleaning has been various DRM, virtual CD software with drivers, motherboard utilities like Asus, Dell bloatware. There used to be stuff like PC decrapifier, which I think is no longer supported, but the need still exists. I shouldn't have to wipe the OS to fix software that doesn't uninstall properly. Recently, updates in general seem to be a problem with chocolately, more than years ago. Many programs refuse to update. I have to uninstall them and reinstall, instead of using the update function. Sometimes the update function breaks the program even if it installs, like LibreOffice, which would load the writer then crash, which I fixed by uninstalling / reinstall. These problems don't exist with the old fashioned update process, just when using chocolatey, and it isn't with all updates either, so maybe the majority updates, but you're always left with a couple that don't. Kinda defeats the purpose. |
I'm not denying whether or not the above is true, but for interest I have just installed Chocolatey and Chocolatey-GUI onto a brand-new Windows 11 laptop, used Chocolatey-GUI to install Firefox and saw duplicate lines (2 lines) immediately. |
This has been going on for years - duplicate output lines.... |
I was bulk installing packages using choco CLI (not GUI) just now, and I encountered a similar problem, which may or may not be connected: the This only happened after the download reached 100%. While it was ongoing, there was only one log line present on screen. Also, the line kept flickering rapidly while the progress was being updated. Moreover, this only occurred for the bulk install process when using If this is a separate bug, I can open an issue in the main choco repo. |
duplicate lines still exist with current versions of chocolatey and GUI on win10 |
I'm running on chocolatey 2.2.2 and chocolateygui 2.1.0 and also have this multiple line output issue. |
What You Are Seeing?
When installing or updating a package, the console often shows multiple (2 or 3) duplicates of the log messages that show after the
Exporting function
,Importing function
, andImporting alias
lines.One example:
What is Expected?
Each line should only show up once.
How Did You Get This To Happen? (Steps to Reproduce)
System Details
Output Log
N/A - The log file correctly shows only one line for each message. This seems to be a UI problem only.
The text was updated successfully, but these errors were encountered: