Multiple duplicate lines in choco console UI (but not log file)
See original GitHub issueWhat 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
, and Importing alias
lines.
One example:
[INFO ] - VERBOSE: Refreshing environment variables from the registry.
[INFO ] - VERBOSE: Refreshing environment variables from the registry.
[INFO ] - VERBOSE: Refreshing environment variables from the registry.
[INFO ] - VERBOSE: Refreshing environment variables from the registry.
[INFO ] - Restricting write permissions to Administrators
[INFO ] - Restricting write permissions to Administrators
[INFO ] - Restricting write permissions to Administrators
[INFO ] - Restricting write permissions to Administrators
[INFO ] - We are setting up the Chocolatey package repository.
[INFO ] - We are setting up the Chocolatey package repository.
[INFO ] - We are setting up the Chocolatey package repository.
[INFO ] - We are setting up the Chocolatey package repository.
What is Expected?
Each line should only show up once.
How Did You Get This To Happen? (Steps to Reproduce)
- Turn on “Show console output”.
- Install or update any package.
- Notice the ongoing log, especially after the “Exporting/Importing function” messages.
System Details
- OS Build: Windows 7
- Windows PowerShell version: The ChocolateyGUI inbuilt one
- Chocolatey version: The example I used above happened when upgrading from 1.0.1 to 1.1.0
Output Log
N/A - The log file correctly shows only one line for each message. This seems to be a UI problem only.
Issue Analytics
- State:
- Created a year ago
- Reactions:7
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Chocolatey Software Docs | Troubleshooting
This message is from https://github.com/chocolatey/choco/issues/527 - it is when the url value chosen is empty. This is common when you are creating a...
Read more >Trouble with duplicate lines of logs in log file - python
I've been trying to get this working correctly all day, its nearly complete just a strange issue I'm getting. Every result that is...
Read more >Install and get started setting up Windows Terminal
Learn how to install and set up Windows Terminal.
Read more >How do I clean up a log file to show consecutive repeated ...
I have log files that can have thousands of repeated lines, I want to copy the behaviour of chrome logs using bash/linux commands....
Read more >Functions — reusable blocks of code - Learn web development
Another essential concept in coding is functions, which allow you to store a piece of code that does a single task inside a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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…