Closed NorbertHD closed 3 months ago
Please shatr your Package Manager logs, so I can see which packages are failing
Original post updated with Package Manager log. Thanks for looking into it.
Nice!
I'm also getting this error on version 3.0.2
:
LoadComponentsAsync finished executing. All managers loaded. Proceeding to interface. Error finding installed packages on manager Npm: System.IndexOutOfRangeException: Index was outside the bounds of the array. at ModernWindow.PackageEngine.Managers.Npm.GetInstalledPackages_UnSafe() at ModernWindow.PackageEngine.Classes.PackageManager.GetInstalledPackages() in C:\Users\marti\Desktop\wingetui-tempo\src\wingetui\PackageEngine\Classes\Manager.cs:line 192 Invalid value for UpdatesCheckInterval, using default value of 3600 seconds
Is there any extra info I can provide?
This is fine, I don't need more details
Please confirm these before moving forward
Describe your issue
When WingetUi searches for npm updates there is an IndexOutOfRangeException in the logs.
"npm list" gives the output "`-- (empty)". After the split with "@" there is only one element in the "elements" array. And then "elements[1]" leads to the IndexOutOfRangeException.
Please add:
if (elements.Length >= 2)
before line 155 in file Npm.cs
Steps to reproduce the issue
No response
WingetUI Log
Package Managers Logs
Relevant information
No response
Screenshots and videos
No response