marticliment / UniGetUI

UniGetUI: The Graphical Interface for your package managers. Could be terribly described as a package manager manager to manage your package managers
https://www.marticliment.com/unigetui/
MIT License
12.79k stars 440 forks source link

[BUG] Incorrect Package Count and Premature Notification in UniGetUI #2649

Closed Biyakuga closed 1 month ago

Biyakuga commented 2 months ago

Please confirm these before moving forward

UniGetUI Version

3.1.1

Windows version, edition, and architecture

Windows 11 Pro 10.0.22631 Build 22631

Describe your issue

The UniGetUI notification system is currently experiencing two main issues

Incorrect Package Count

Premature Notification

Expected Behavior

Steps to reproduce the issue

Scenario 1 - Incorrect Package Count After Checking for New Packages

Scenario 2 - Incorrect Package Count After Updating a Package

UniGetUI Log

[21-Aug-24 00:41:34]    __  __      _ ______     __  __  ______
                       / / / /___  (_) ____/__  / /_/ / / /  _/
                      / / / / __ \/ / / __/ _ \/ __/ / / // /
                     / /_/ / / / / / /_/ /  __/ /_/ /_/ // /
                     \____/_/ /_/_/\____/\___/\__/\____/___/
                         Welcome to UniGetUI Version 3.1.1
[21-Aug-24 00:41:34]
[21-Aug-24 00:41:34] Version Code:  3.11
[21-Aug-24 00:41:34] Encoding Code Page set to 65001
[21-Aug-24 00:41:34] Using bundled GSudo at C:\Program Files\WingetUI\Assets\Utilities\gsudo.exe
[21-Aug-24 00:41:34] Loaded language locale: en
[21-Aug-24 00:41:34] Randomly-generated background API auth token for the current session: 3jh8kf2m1qnjjh2zrcg9utokl294dli73gn1v1zkkv6zowf2sefatbftyduwgqfw
[21-Aug-24 00:41:35] Api running on http://localhost:7058
[21-Aug-24 00:41:35] Lang files were updated successfully from GitHub
[21-Aug-24 00:41:35] Downloaded new icons and screenshots successfully!
[21-Aug-24 00:41:35] UniGetUI is up to date
[21-Aug-24 00:41:35] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                     █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                     █ Name: Winget
                     █ Enabled: True
                     █ Found: True
                     █ Fancy exe name: winget.exe
                     █ Executable path: C:\Users\Byakuga\AppData\Local\Microsoft\WindowsApps\winget.exe
                     █ Call arguments: 
                     █ Version: 
                     █   System WinGet CLI Version: v1.8.1911
                     █   Microsoft.WinGet.Client PSModule version: ""
                     █   Using Native WinGet helper (COM Api)
                     ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[21-Aug-24 00:41:35] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                     █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                     █ Name: .NET Tool
                     █ Enabled: False
                     █ THE MANAGER IS DISABLED
                     ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[21-Aug-24 00:41:35] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                     █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                     █ Name: Chocolatey
                     █ Enabled: False
                     █ THE MANAGER IS DISABLED
                     ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[21-Aug-24 00:41:35] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                     █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                     █ Name: Npm
                     █ Enabled: False
                     █ THE MANAGER IS DISABLED
                     ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[21-Aug-24 00:41:35] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                     █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                     █ Name: Scoop
                     █ Enabled: False
                     █ THE MANAGER IS DISABLED
                     ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[21-Aug-24 00:41:36] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                     █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                     █ Name: Pip
                     █ Enabled: False
                     █ THE MANAGER IS DISABLED
                     ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[21-Aug-24 00:41:36] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                     █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                     █ Name: PowerShell7
                     █ Enabled: True
                     █ Found: True
                     █ Fancy exe name: pwsh.exe
                     █ Executable path: C:\Users\Byakuga\AppData\Local\Microsoft\WindowsApps\pwsh.exe
                     █ Call arguments:  -NoProfile -Command
                     █ Version: 
                     █   PowerShell 7.4.4
                     ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[21-Aug-24 00:41:36] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                     █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                     █ Name: PowerShell
                     █ Enabled: True
                     █ Found: True
                     █ Fancy exe name: powershell.exe
                     █ Executable path: C:\Windows\system32\windowspowershell\v1.0\powershell.exe
                     █ Call arguments:  -NoProfile -Command
                     █ Version: 
                     █   Name                           Value                                                                                   
                     █   ----                           -----                                                                                   
                     █   PSVersion                      5.1.22621.3958                                                                          
                     █   PSEdition                      Desktop                                                                                 
                     █   PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                 
                     █   BuildVersion                   10.0.22621.3958                                                                         
                     █   CLRVersion                     4.0.30319.42000                                                                         
                     █   WSManStackVersion              3.0                                                                                     
                     █   PSRemotingProtocolVersion      2.3                                                                                     
                     █   SerializationVersion           1.1.0.1
                     ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[21-Aug-24 00:41:37] Microsoft.Powershell.Client detection has been forcefully skipped as the module is not required on the current context
[21-Aug-24 00:41:37] Dependency WinGet PowerShell Module for manager Winget is present
[21-Aug-24 00:41:37] LoadComponentsAsync finished executing. All managers loaded. Proceeding to interface.
[21-Aug-24 00:41:38] Found 0 installed packages from PowerShell7
[21-Aug-24 00:41:38] Found 0 available updates from PowerShell7
[21-Aug-24 00:41:38] Found 1 installed packages from PowerShell
[21-Aug-24 00:41:42] Found 0 available updates from PowerShell
[21-Aug-24 00:41:46] Found 8 available updates from Winget
[21-Aug-24 00:41:46] Found 734 installed packages from Winget
[21-Aug-24 01:28:04] Found 0 installed packages from PowerShell7
[21-Aug-24 01:28:04] Found 1 installed packages from PowerShell
[21-Aug-24 01:28:08] Found 734 installed packages from Winget
[21-Aug-24 01:29:58] Found 0 available updates from PowerShell7
[21-Aug-24 01:29:59] Found 0 available updates from PowerShell
[21-Aug-24 01:30:02] Found 7 available updates from Winget
[21-Aug-24 01:30:07] Non-MSStore WinGet Native Icons have been forcefully disabled on code
[21-Aug-24 01:30:07] Icon for package GitHub.cli was not found, returning default icon
[21-Aug-24 01:30:07] Non-MSStore WinGet Native Icons have been forcefully disabled on code
[21-Aug-24 01:30:07] Icon for package GOG.Galaxy was not found, returning default icon
[21-Aug-24 01:41:35] UniGetUI is up to date
[21-Aug-24 01:46:58] Found 0 installed packages from PowerShell7
[21-Aug-24 01:46:58] Found 1 installed packages from PowerShell
[21-Aug-24 01:47:04] Found 734 installed packages from Winget
[21-Aug-24 02:41:36] UniGetUI is up to date
[21-Aug-24 03:41:37] UniGetUI is up to date
[21-Aug-24 04:41:37] UniGetUI is up to date
[21-Aug-24 05:04:17] Found 0 installed packages from PowerShell7
[21-Aug-24 05:04:17] Found 1 installed packages from PowerShell
[21-Aug-24 05:04:23] Found 734 installed packages from Winget
[21-Aug-24 05:04:27] Found 0 available updates from PowerShell7
[21-Aug-24 05:04:29] Found 0 available updates from PowerShell
[21-Aug-24 05:04:32] Found 6 available updates from Winget
[21-Aug-24 05:07:40] Found 0 installed packages from PowerShell7
[21-Aug-24 05:07:41] Found 1 installed packages from PowerShell
[21-Aug-24 05:07:45] Found 734 installed packages from Winget
[21-Aug-24 05:07:48] Found 0 available updates from PowerShell7
[21-Aug-24 05:07:50] Found 0 available updates from PowerShell
[21-Aug-24 05:07:53] Found 6 available updates from Winget
[21-Aug-24 05:08:41] Found 0 available updates from PowerShell7
[21-Aug-24 05:08:43] Found 0 available updates from PowerShell
[21-Aug-24 05:08:49] Found 5 available updates from Winget
[21-Aug-24 05:32:36] Found 0 installed packages from PowerShell7
[21-Aug-24 05:32:37] Found 1 installed packages from PowerShell
[21-Aug-24 05:32:41] Found 734 installed packages from Winget

Package Managers Logs

Manager WinGet with version:
System WinGet CLI Version: v1.8.1911
Microsoft.WinGet.Client PSModule version: ""
Using Native WinGet helper (COM Api)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListSources
Process start time: 21-Aug-24 00:41:35
Process end time:   21-Aug-24 00:41:35

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\Byakuga\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity"
Process start time: 21-Aug-24 00:41:36
Process end time:   21-Aug-24 00:41:39

-- Process STDOUT
 ...

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 21-Aug-24 00:41:37
Process end time:   21-Aug-24 00:41:46

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListSources
Process start time: 21-Aug-24 00:41:37
Process end time:   21-Aug-24 00:41:37

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 21-Aug-24 00:41:39
Process end time:   21-Aug-24 00:41:46

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 21-Aug-24 01:28:03
Process end time:   21-Aug-24 01:28:08

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\Byakuga\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity"
Process start time: 21-Aug-24 01:29:57
Process end time:   21-Aug-24 01:29:57

-- Process STDOUT
 ...

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 21-Aug-24 01:29:57
Process end time:   21-Aug-24 01:30:02

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 21-Aug-24 01:46:56
Process end time:   21-Aug-24 01:47:04

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 21-Aug-24 05:04:15
Process end time:   21-Aug-24 05:04:23

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\Byakuga\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity"
Process start time: 21-Aug-24 05:04:26
Process end time:   21-Aug-24 05:04:27

-- Process STDOUT
 ...

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 21-Aug-24 05:04:27
Process end time:   21-Aug-24 05:04:32

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 21-Aug-24 05:07:39
Process end time:   21-Aug-24 05:07:45

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\Byakuga\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity"
Process start time: 21-Aug-24 05:07:47
Process end time:   21-Aug-24 05:07:48

-- Process STDOUT
 ...

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 21-Aug-24 05:07:48
Process end time:   21-Aug-24 05:07:53

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\Byakuga\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity"
Process start time: 21-Aug-24 05:08:40
Process end time:   21-Aug-24 05:08:40

-- Process STDOUT
 ...

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 21-Aug-24 05:08:40
Process end time:   21-Aug-24 05:08:49

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 21-Aug-24 05:32:35
Process end time:   21-Aug-24 05:32:41

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 21-Aug-24 05:33:46
Process end time:   21-Aug-24 05:33:52

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 21-Aug-24 05:34:22
Process end time:   UNFINISHED

-- Task information
 ...

The task has not finished yet

——————————————————————————————————————————

Relevant information

No response

Screenshots and videos

No response

marticliment commented 2 months ago

I will investigate