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] Can't set scope options #2615

Closed only-su closed 1 month ago

only-su commented 2 months ago

Please confirm these before moving forward

UniGetUI Version

3.1.1

Windows version, edition, and architecture

Windows 11 Pro 22631.3958

Describe your issue

Doesn't matter where I try to set the scope options, be it discovery, installed or bundle; be it going on package details or installation options; be it changing the package bundle .json file. The InstallationScope is alaways set to default. I have other problems also like I can't set any options on the package bundle tab and version pinning seems to only work on package discovery tab.

Steps to reproduce the issue

No response

UniGetUI Log

[08/08/2024 13:51:03]    __  __      _ ______     __  __  ______
                        / / / /___  (_) ____/__  / /_/ / / /  _/
                       / / / / __ \/ / / __/ _ \/ __/ / / // /
                      / /_/ / / / / / /_/ /  __/ /_/ /_/ // /
                      \____/_/ /_/_/\____/\___/\__/\____/___/
                          Welcome to UniGetUI Version 3.1.1
[08/08/2024 13:51:03]
[08/08/2024 13:51:03] Version Code:  3,11
[08/08/2024 13:51:03] Encoding Code Page set to 850
[08/08/2024 13:51:03] Using bundled GSudo at C:\Program Files\UniGetUI\Assets\Utilities\gsudo.exe
[08/08/2024 13:51:03] Loaded language locale: pt_BR
[08/08/2024 13:51:03] Starting update check
[08/08/2024 13:51:03] Randomly-generated background API auth token for the current session: 47mv3ak028bclae0kqiyilpoxvvuixw8aq4hwq8h5jgcj3l2hto5huo47mc82is1
[08/08/2024 13:51:04] Api running on http://localhost:7058
[08/08/2024 13:51:04] Begin "which" search for command winget.exe
[08/08/2024 13:51:04] Old chocolatey path does not exist, not migrating Chocolatey
[08/08/2024 13:51:04] Begin "which" search for command npm
[08/08/2024 13:51:04] Begin "which" search for command python.exe
[08/08/2024 13:51:04] Begin "which" search for command dotnet.exe
[08/08/2024 13:51:04] Begin "which" search for command pwsh.exe
[08/08/2024 13:51:04] Lang files were updated successfully from GitHub
[08/08/2024 13:51:04] UniGetUI is up to date
[08/08/2024 13:51:04] Command winget.exe was found on C:\Users\User\AppData\Local\Microsoft\WindowsApps\winget.exe
[08/08/2024 13:51:04] Command npm was found on C:\Program Files\nodejs\npm
[08/08/2024 13:51:04] Command python.exe was found on C:\Users\User\AppData\Local\Microsoft\WindowsApps\python.exe
[08/08/2024 13:51:04] Downloaded new icons and screenshots successfully!
[08/08/2024 13:51:04] Command dotnet.exe was found on C:\Program Files\dotnet\dotnet.exe
[08/08/2024 13:51:04] Command pwsh.exe was found on C:\Program Files\PowerShell\7\pwsh.exe
[08/08/2024 13:51:04] Saving window geometry -8,-8,1382,736,1
[08/08/2024 13:51:05] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: .NET Tool
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[08/08/2024 13:51:05] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Pip
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[08/08/2024 13:51:05] Begin "which" search for command scoop
[08/08/2024 13:51:06] Command scoop was not found on the system
[08/08/2024 13:51:06] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Scoop
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[08/08/2024 13:51:06] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Npm
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: npm
                      █ Executable path: C:\Windows\system32\windowspowershell\v1.0\powershell.exe
                      █ Call arguments:  -NoProfile -ExecutionPolicy Bypass -Command npm
                      █ Version: 
                      █   10.8.1
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[08/08/2024 13:51:06] Loaded 2 sources for manager Winget
[08/08/2024 13:51:06] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Winget
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: winget.exe
                      █ Executable path: C:\Users\User\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)
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[08/08/2024 13:51:07] Loaded 1 sources for manager Chocolatey
[08/08/2024 13:51:07] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Chocolatey
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: choco.exe
                      █ Executable path: C:\Users\User\AppData\Local\UniGetUI\Chocolatey\choco.exe
                      █ Call arguments: 
                      █ Version: 
                      █   2.3.0
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[08/08/2024 13:51:08] Loaded 1 sources for manager PowerShell
[08/08/2024 13:51:08] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ 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
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[08/08/2024 13:51:08] Loaded 1 sources for manager PowerShell7
[08/08/2024 13:51:08] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: PowerShell7
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: pwsh.exe
                      █ Executable path: C:\Program Files\PowerShell\7\pwsh.exe
                      █ Call arguments:  -NoProfile -Command
                      █ Version: 
                      █   PowerShell 7.4.4
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[08/08/2024 13:51:08] Starting check for updates wait interval with waitTime=86400
[08/08/2024 13:51:08] Manager Chocolatey has not implemented RefreshPackageIndexes
[08/08/2024 13:51:08] Manager Npm has not implemented RefreshPackageIndexes
[08/08/2024 13:51:08] Manager PowerShell has not implemented RefreshPackageIndexes
[08/08/2024 13:51:08] Manager PowerShell7 has not implemented RefreshPackageIndexes
[08/08/2024 13:51:09] Resetting administrator rights cache for process id 31788
[08/08/2024 13:51:10] Microsoft.Powershell.Client detection has been forcefully skipped as the module is not required on the current context
[08/08/2024 13:51:10] Dependency WinGet PowerShell Module for manager Winget is present
[08/08/2024 13:51:10] LoadComponentsAsync finished executing. All managers loaded. Proceeding to interface.
[08/08/2024 13:51:11] Loaded 2 sources for manager Winget
[08/08/2024 13:51:15] Found 184 installed packages from Winget
[08/08/2024 13:51:17] Found 4 available updates from Chocolatey
[08/08/2024 13:51:17] Found 17 installed packages from Chocolatey
[08/08/2024 13:51:17] Loaded 1 sources for manager Chocolatey
[08/08/2024 13:51:17] Found 1 installed packages from PowerShell
[08/08/2024 13:51:17] Loaded 1 sources for manager PowerShell
[08/08/2024 13:51:18] Loaded 1 sources for manager PowerShell7
[08/08/2024 13:51:18] Found 1 installed packages from PowerShell7
[08/08/2024 13:51:19] Found 0 available updates from PowerShell
[08/08/2024 13:51:21] Found 4 installed packages from Npm
[08/08/2024 13:51:21] Found 9 available updates from Winget
[08/08/2024 13:51:21] Found 1 available updates from Npm
[08/08/2024 13:51:23] Uninstall
[08/08/2024 13:51:23] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[08/08/2024 13:51:23] InstallationOptions loaded successfully from disk for package Git.Git
[08/08/2024 13:51:23] Non-MSStore WinGet Native Icons have been forcefully disabled on code
[08/08/2024 13:51:23] Manager Winget did not find a native icon for Git.Git
[08/08/2024 13:51:23] Loaded icon with URL=UniGetUI.Core.IconEngine.CacheableIcon for package Id=Git.Git
[08/08/2024 13:51:23] Icon for package Git.Git on manager Winget with Uri=https://raw.githubusercontent.com/git/git-scm.com/main/public/images/logos/downloads/Git-Icon-1788C.png has been determined to be VALID through verification method PackageVersion
[08/08/2024 13:51:23] Icon for package Git.Git stored on C:\Users\User\AppData\Local\UniGetUI\CachedMedia\Winget\Git.Git.png
[08/08/2024 13:51:23] Icon for package Git.Git was loaded from file:///C:/Users/User/AppData/Local/UniGetUI/CachedMedia/Winget/Git.Git.png
[08/08/2024 13:51:23] Found 0 screenshots for package Id=Git.Git
[08/08/2024 13:51:23] Found 50 versions for package Id=Git.Git on manager Winget
[08/08/2024 13:51:25] Loaded details for package Git.Git on manager Winget
[08/08/2024 13:51:25] Found 0 available updates from PowerShell7
[08/08/2024 13:51:25] Starting check for updates wait interval with waitTime=86400
[08/08/2024 13:52:23] Adding native package with id=OpenJS.NodeJS.LTS to bundle as a VALID package...
[08/08/2024 13:52:23] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.ImportedPackage, as no instance was found in cache
[08/08/2024 13:52:23] Adding native package with id=turbo to bundle as a VALID package...
[08/08/2024 13:52:23] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.ImportedPackage, as no instance was found in cache
[08/08/2024 13:52:23] InstallationOptions loaded successfully from disk for package turbo
[08/08/2024 13:52:23] Adding native package with id=pnpm.pnpm to bundle as a VALID package...
[08/08/2024 13:52:23] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.ImportedPackage, as no instance was found in cache
[08/08/2024 13:52:23] InstallationOptions loaded successfully from disk for package pnpm.pnpm
[08/08/2024 13:52:23] Adding native package with id=Git.Git to bundle as a VALID package...
[08/08/2024 13:52:29] Install
[08/08/2024 13:52:29] Non-MSStore WinGet Native Icons have been forcefully disabled on code
[08/08/2024 13:52:29] Manager Winget did not find a native icon for Git.Git
[08/08/2024 13:52:29] Loaded icon with URL=UniGetUI.Core.IconEngine.CacheableIcon for package Id=Git.Git
[08/08/2024 13:52:29] Icon for package Git.Git on manager Winget with Uri=https://raw.githubusercontent.com/git/git-scm.com/main/public/images/logos/downloads/Git-Icon-1788C.png has been determined to be INVALID through verification method PackageVersion
[08/08/2024 13:52:29] Found 0 screenshots for package Id=Git.Git
[08/08/2024 13:52:29] Icon for package Git.Git stored on C:\Users\User\AppData\Local\UniGetUI\CachedMedia\Winget\Git.Git.png
[08/08/2024 13:52:29] Icon for package Git.Git was loaded from file:///C:/Users/User/AppData/Local/UniGetUI/CachedMedia/Winget/Git.Git.png
[08/08/2024 13:52:29] Found 50 versions for package Id=Git.Git on manager Winget
[08/08/2024 13:52:30] Loaded details for package Git.Git on manager Winget
[08/08/2024 13:52:55] Install
[08/08/2024 13:52:55] Manager Npm does not support native icons
[08/08/2024 13:52:55] Icon for package turbo was not found, returning default icon
[08/08/2024 13:52:55] Icon for package turbo was loaded from ms-appx:///Assets/Images/package_color.png
[08/08/2024 13:52:55] Manager Npm does not support native screenshots
[08/08/2024 13:52:55] Found 0 screenshots for package Id=turbo
[08/08/2024 13:52:57] Found 489 versions for package Id=turbo on manager Npm
[08/08/2024 13:52:57] Loaded details for package turbo on manager Npm
[08/08/2024 13:53:11] Install
[08/08/2024 13:53:11] Non-MSStore WinGet Native Icons have been forcefully disabled on code
[08/08/2024 13:53:11] Manager Winget did not find a native icon for Git.Git
[08/08/2024 13:53:11] Loaded icon with URL=UniGetUI.Core.IconEngine.CacheableIcon for package Id=Git.Git
[08/08/2024 13:53:11] Icon for package Git.Git on manager Winget with Uri=https://raw.githubusercontent.com/git/git-scm.com/main/public/images/logos/downloads/Git-Icon-1788C.png has been determined to be VALID through verification method PackageVersion
[08/08/2024 13:53:11] Icon for package Git.Git stored on C:\Users\User\AppData\Local\UniGetUI\CachedMedia\Winget\Git.Git.png
[08/08/2024 13:53:11] Icon for package Git.Git was loaded from file:///C:/Users/User/AppData/Local/UniGetUI/CachedMedia/Winget/Git.Git.png
[08/08/2024 13:53:11] Found 0 screenshots for package Id=Git.Git
[08/08/2024 13:53:11] Found 50 versions for package Id=Git.Git on manager Winget
[08/08/2024 13:55:54] Install
[08/08/2024 13:55:54] Non-MSStore WinGet Native Icons have been forcefully disabled on code
[08/08/2024 13:55:54] Manager Winget did not find a native icon for Git.Git
[08/08/2024 13:55:54] Loaded icon with URL=UniGetUI.Core.IconEngine.CacheableIcon for package Id=Git.Git
[08/08/2024 13:55:54] Icon for package Git.Git on manager Winget with Uri=https://raw.githubusercontent.com/git/git-scm.com/main/public/images/logos/downloads/Git-Icon-1788C.png has been determined to be VALID through verification method PackageVersion
[08/08/2024 13:55:54] Icon for package Git.Git stored on C:\Users\User\AppData\Local\UniGetUI\CachedMedia\Winget\Git.Git.png
[08/08/2024 13:55:54] Icon for package Git.Git was loaded from file:///C:/Users/User/AppData/Local/UniGetUI/CachedMedia/Winget/Git.Git.png
[08/08/2024 13:55:54] Found 0 screenshots for package Id=Git.Git
[08/08/2024 13:55:54] Found 50 versions for package Id=Git.Git on manager 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: 08/08/2024 13:51:06
Process end time:   08/08/2024 13:51:06

-- Task information
 ...

The task reported success

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

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\User\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity"
Process start time: 08/08/2024 13:51:08
Process end time:   08/08/2024 13:51:17

-- Process STDOUT
 ...

Return code: SUCCESS (0)

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

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 08/08/2024 13:51:08
Process end time:   08/08/2024 13:51:15

-- Task information
 ...

The task reported success

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

Logged native task on manager Winget. Task type is ListSources
Process start time: 08/08/2024 13:51:09
Process end time:   08/08/2024 13:51:11

-- Task information
 ...

The task reported success

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

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 08/08/2024 13:51:17
Process end time:   08/08/2024 13:51:21

-- Task information
 ...

The task reported success

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

Logged native task on manager Winget. Task type is LoadPackageDetails
Process start time: 08/08/2024 13:51:23
Process end time:   08/08/2024 13:51:25

-- Task information
 ...

The task reported success

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

Logged native task on manager Winget. Task type is LoadPackageVersions
Process start time: 08/08/2024 13:51:23
Process end time:   08/08/2024 13:51:23

-- Task information
 ...

The task reported success

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

Logged native task on manager Winget. Task type is LoadPackageDetails
Process start time: 08/08/2024 13:52:29
Process end time:   08/08/2024 13:52:30

-- Task information
 ...

The task reported success

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

Logged native task on manager Winget. Task type is LoadPackageVersions
Process start time: 08/08/2024 13:52:29
Process end time:   08/08/2024 13:52:29

-- Task information
 ...

The task reported success

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

Logged native task on manager Winget. Task type is LoadPackageVersions
Process start time: 08/08/2024 13:53:11
Process end time:   08/08/2024 13:53:11

-- Task information
 ...

The task reported success

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

Logged native task on manager Winget. Task type is LoadPackageVersions
Process start time: 08/08/2024 13:55:54
Process end time:   08/08/2024 13:55:54

-- Task information
 ...

The task reported success

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

Relevant information

No response

Screenshots and videos

No response

marticliment commented 2 months ago

Which package? from which Package manager?

only-su commented 2 months ago

I was trying with Git from winget

marticliment commented 2 months ago

I will investigate

shanto commented 1 month ago

I can confirm this, and also, Scope option is neither saved, nor restored in/from the corresponding JSON file for package installation options.

marticliment commented 1 month ago

Please test UniGetUI 3.1.2-beta0, which had improvements into how settings are imported and exported: https://github.com/marticliment/UniGetUI/releases/tag/3.1.2-beta0

shanto commented 1 month ago

Please test UniGetUI 3.1.2-beta0, which had improvements into how settings are imported and exported: https://github.com/marticliment/UniGetUI/releases/tag/3.1.2-beta0

No change. I think it is a bug with how the UI values/labels are transformed before/after saving.

https://github.com/user-attachments/assets/16da3564-fd33-411f-a730-50c98ad9304e