question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple duplicate lines in choco console UI (but not log file)

See original GitHub 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, 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)

  1. Turn on “Show console output”.
  2. Install or update any package.
  3. 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:open
  • Created a year ago
  • Reactions:7
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
JohnVenesscommented, Oct 11, 2022

The duplicate lines increase every time you install Chocolatey GUI.

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.

3reactions
274188Acommented, Jun 1, 2023

The duplicate lines increase every time you install Chocolatey GUI.

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…

image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found