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
10.62k stars 348 forks source link

[BUG] Dependency .NET Tools Outdated fails to install #2376

Closed redactedscribe closed 3 weeks ago

redactedscribe commented 3 weeks ago

Please confirm these before moving forward

UniGetUI Version

3.1.0 beta 1

Windows version, edition and architecture

Windows 11 Pro

Describe your issue

After installing beta 1 having deleted my %LOCALAPPDATA%\UniGetUI dir, I received a popup about a missing dependency, .NET Tools Outdated:

WingetUI_2024-07-01_16-19-09

Since I could not find this (presumably) executable online to install to my system, I pressed the Install button as seen in the popup. It fails to install it. A PowerShell console window appears with the error:

The command could not be loaded, possibly because:
  * You intended to execute a .NET application:
      The application 'tool' does not exist.
  * You intended to execute a .NET SDK command:
      No .NET SDKs were found.

Download a .NET SDK:
https://aka.ms/dotnet/download

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found

Steps to reproduce the issue

Fresh install of UniGetUI, no previous settings.

UniGetUI Log

[01/07/2024 16:30:10] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: .NET Tool
                      █ Enabled: True
                      █ Found: True
                      █ Fancye exe name: dotnet tool
                      █ Executable path: C:\Program Files\dotnet\dotnet.exe
                      █ Call arguments: tool
                      █ Version: 
                      █   
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
...
[01/07/2024 16:30:16] Command dotnet-tools-outdated.exe was not found on the system
[01/07/2024 16:30:17] Error finding updates on manager .NET Tool
[01/07/2024 16:30:17] System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'dotnet-tools-outdated.exe' with working directory 'C:\Program Files\UniGetUI'. The system cannot find the file specified.
                         at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
                         at UniGetUI.PackageEngine.Managers.DotNetManager.DotNet.GetAvailableUpdates_UnSafe() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.Dotnet\DotNet.cs:line 99
                         at UniGetUI.PackageEngine.ManagerClasses.Manager.PackageManager.GetAvailableUpdates() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.PackageManagerClasses\Manager\PackageManager.cs:line 182
...
[01/07/2024 16:30:19] Command dotnet-tools-outdated.exe was not found on the system
[01/07/2024 16:30:19] Dependency .NET Tools Outdated was not found for manager .NET Tool, installing...
...

Package Managers Logs

Manager .NET Tool with version:

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

Logged subprocess-based task on manager .NET Tool. Task type is ListPackages
Subprocess executable: "C:\Program Files\dotnet\dotnet.exe"
Command-line arguments: "tool list"
Process start time: 01/07/2024 16:30:15
Process end time:   01/07/2024 16:30:16

-- Process STDERR
  The command could not be loaded, possibly because:
    * You intended to execute a .NET application:
        The application 'tool' does not exist.
    * You intended to execute a .NET SDK command:
        No .NET SDKs were found.

  Download a .NET SDK:
  https://aka.ms/dotnet/download

  Learn about SDK resolution:
  https://aka.ms/dotnet/sdk-not-found

Return code: FAILED (-2147450735)

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

Logged subprocess-based task on manager .NET Tool. Task type is InstallManagerDependency
Subprocess executable: "C:\Program Files\dotnet\dotnet.exe"
Command-line arguments: "tool install --global dotnet-tools-outdated"
Process start time: 01/07/2024 16:30:16
Process end time:   01/07/2024 16:30:17

-- Process STDERR
  The command could not be loaded, possibly because:
    * You intended to execute a .NET application:
        The application 'tool' does not exist.
    * You intended to execute a .NET SDK command:
        No .NET SDKs were found.

  Download a .NET SDK:
  https://aka.ms/dotnet/download

  Learn about SDK resolution:
  https://aka.ms/dotnet/sdk-not-found

Return code: FAILED (-2147450735)

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

Logged subprocess-based task on manager .NET Tool. Task type is ListPackages
Subprocess executable: "C:\Program Files\dotnet\dotnet.exe"
Command-line arguments: "tool list --global"
Process start time: 01/07/2024 16:30:16
Process end time:   01/07/2024 16:30:17

-- Process STDERR
  The command could not be loaded, possibly because:
    * You intended to execute a .NET application:
        The application 'tool' does not exist.
    * You intended to execute a .NET SDK command:
        No .NET SDKs were found.

  Download a .NET SDK:
  https://aka.ms/dotnet/download

  Learn about SDK resolution:
  https://aka.ms/dotnet/sdk-not-found

Return code: FAILED (-2147450735)

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

Logged subprocess-based task on manager .NET Tool. Task type is ListUpdates
Subprocess executable: "dotnet-tools-outdated.exe"
Command-line arguments: ""
Process start time: 01/07/2024 16:30:17
Process end time:   UNFINISHED

Return code: Process has not finished yet

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

Relevant information

No response

Screenshots and videos

No response

redactedscribe commented 2 weeks ago

@marticliment Confirming that beta 2 fixed the issue. No more .NET Tools Outdated dependency popup.