Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG/ISSUE] Wrong package ID parsing in Software Update Tab and winget 1.4 #369

Closed
4 tasks done
1889737514 opened this issue Oct 31, 2022 · 3 comments
Closed
4 tasks done
Assignees
Labels
bug Something isn't working ready-to-go

Comments

@1889737514
Copy link

1889737514 commented Oct 31, 2022

Before submitting the issue

  • I have checked that the bug is not a duplicate or, if it is, it needs to be reopened
  • I have checked that I am running the latest version of WingetUI
  • I have tried resetting and reinstalling WingetUI and the issue persisted or happened again
  • I have checked the FAQ section for solutions

Describe the bug

When the package name have Chinese character, the package in Software Update Tab cannot parse package ID correctly, when some part of them appeared in the package name.

To Reproduce

Steps to reproduce the behaviour:

  1. Install an old-version package with Chinese character in name, for example Windows Terminal ("Windows 终端", package ID: Microsoft.WindowsTerminal in winget)
  2. Switch system language to Simplified Chinese
  3. Go to "Software Update" Tab
  4. See error

Expected behaviour

This package's ID is wrongly parsed to "crosoft.WindowsTerminal", when "Mi" appeared in package name.

Screenshots

图片

The Log

C:\Program Files (x86)\gsudo\gsudo.EXE
C:\Program Files (x86)\gsudo
🟢 checkQueue Thread started!
🟢 Using cached lang file
🟡 Using bundled lang file (forced=True)
It took 0.0 to load all language files
🔵 Starting main application...
Scanning for instances...
Found lock file(s), reactivating...
🔵 Starting update check
b'v1.4.10173\r\n'
None
updating winget
🔵 Language file up-to-date
🟢 Downloaded latest metadata to local file
🔵 Loaded metadata from local file
b"Current Scoop version:\nv0.3.1 - Released at 2022-11-15\n\n'main' bucket:\n2400d6851 oh-my-posh: Update to version 14.0.1\n\n'nerd-fonts' bucket:\ne7e3772 Delugia-Nerd-Font: Update to version 2111.01.2\n\n"
None
Reactivation signal ignored: RaiseWindow_[1675140599.9281168]
🔵 Version URL: https://versions.marticliment.com/versions/wingetui.ver
🟢 Updates not found
Reached main ui load milestone
{'wingetFound': True, 'scoopFound': True, 'chocoFound': False, 'sudoFound': False, 'wingetVersion': 'v1.4.10173\r', 'scoopVersion': 'v0.3.1 - Released at 2022-11-15', 'chocoVersion': 'Chocolatey 已不可用', 'sudoVersion': ''}
🟢 Starting winget search, winget on C:\Users\Gest\AppData\Local\Programs\WingetUI\winget-cli\winget.exe...
🟢 Starting scoop search...
🟢 Discover tab loaded
🟢 Starting winget search, winget on C:\Users\Gest\AppData\Local\Programs\WingetUI\winget-cli\winget.exe...
🟢 Starting scoop search...
🟢 Upgrades tab loaded
🟢 Starting winget search, winget on C:\Users\Gest\AppData\Local\Programs\WingetUI\winget-cli\winget.exe...
🟢 Starting scoop search...
🟢 Discover tab loaded
🟢 Starting scoop search...
🟢 Settings tab loaded!
🟢 About tab loaded!
🟢 Main application loaded...
0
🟢 Scoop bucket search finished
🟢 Scoop search finished
🟢 Searching for string ""
Name         Id                        Version     Available
🟢 Winget search finished
🟢 Searching for string ""
🟡 package 小米妙享                         Xiao failed parsing, going for method 2...
小米妙享                         Xiaomi.MIUI+                                              3.2.0.296 91
🟡 package 哔哩哔哩                         Bili failed parsing, going for method 2...
哔哩哔哩                         Bilibili.Bilibili                                         1.9.0 91
🟡 package 联想应用商店                     Lenovo failed parsing, going for method 2...
联想应用商店                     Lenovo.LeAppStore                                         8.5.49.0112 91
🟡 package MSN 天气                         Mi failed parsing, going for method 2...
MSN 天气                         Microsoft.BingWeather_8wekyb3d8bbwe                       4.53.43112.0 91
🟡 package 应用安装程序                     Micros failed parsing, going for method 2...
应用安装程序                     Microsoft.DesktopAppInstaller_8wekyb3d8bbwe               1.19.10173.0 91
🟡 package 获取帮助                         Micr failed parsing, going for method 2...
获取帮助                         Microsoft.GetHelp_8wekyb3d8bbwe                           10.2208.2551.0 91
🟡 package Microsoft 使用技巧               Micr failed parsing, going for method 2...
Microsoft 使用技巧               Microsoft.Getstarted_8wekyb3d8bbwe                        10.2210.3.0 91
🟡 package 来自设备制造商的 HEVC 视频扩展   Microsoft.HE failed parsing, going for method 2...
来自设备制造商的 HEVC 视频扩展   Microsoft.HEVCVideoExtension_8wekyb3d8bbwe                1.0.50361.0 91
🟡 package 中文(简体)本地体验包             Microsoft failed parsing, going for method 2...
中文(简体)本地体验包             Microsoft.LanguageExperiencePackzh-CN_8wekyb3d8bbwe       22621.12.72.0 91
🟡 package MPEG-2 视频扩展                  Micr failed parsing, going for method 2...
MPEG-2 视频扩展                  Microsoft.MPEG2VideoExtension_8wekyb3d8bbwe               1.0.50901.0 91
🟡 package 画图 3D                          Mi failed parsing, going for method 2...
画图 3D                          Microsoft.MSPaint_8wekyb3d8bbwe                           6.2203.1037.0 91
🟡 package 3D 查看器                        Mic failed parsing, going for method 2...
3D 查看器                        Microsoft.Microsoft3DViewer_8wekyb3d8bbwe                 7.2211.24012.0 91
🟡 package Microsoft 便笺                   Mi failed parsing, going for method 2...
Microsoft 便笺                   Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe              4.5.9.0 91
🟡 package 混合现实门户                     Micros failed parsing, going for method 2...
混合现实门户                     Microsoft.MixedReality.Portal_8wekyb3d8bbwe               2000.21051.1282.0 91
🟡 package 画图                             Mi failed parsing, going for method 2...
画图                             Microsoft.Paint_8wekyb3d8bbwe                             11.2210.4.0 91
🟡 package 截图工具                         Micr failed parsing, going for method 2...
截图工具                         Microsoft.ScreenSketch_8wekyb3d8bbwe                      11.2209.2.0 91
🟡 package Windows 安全中心                 Micr failed parsing, going for method 2...
Windows 安全中心                 Microsoft.SecHealthUI_8wekyb3d8bbwe                       1000.22621.1.0 91
🟡 package Microsoft Store 体验主机         Micr failed parsing, going for method 2...
Microsoft Store 体验主机         Microsoft.StorePurchaseApp_8wekyb3d8bbwe                  12207.44.6.0 91
🟡 package Web 媒体扩展                     Micr failed parsing, going for method 2...
Web 媒体扩展                     Microsoft.WebMediaExtensions_8wekyb3d8bbwe                1.0.42192.0 91
🟡 package Microsoft 照片                   Mi failed parsing, going for method 2...
Microsoft 照片                   Microsoft.Windows.Photos_8wekyb3d8bbwe                    2023.11010.17009.0 91
🟡 package Windows 时钟                     Mi failed parsing, going for method 2...
Windows 时钟                     Microsoft.WindowsAlarms_8wekyb3d8bbwe                     11.2210.9.0 91
🟡 package Windows 计算器                   Mic failed parsing, going for method 2...
Windows 计算器                   Microsoft.WindowsCalculator_8wekyb3d8bbwe                 11.2210.0.0 91
🟡 package Windows 相机                     Mi failed parsing, going for method 2...
Windows 相机                     Microsoft.WindowsCamera_8wekyb3d8bbwe                     2022.2210.9.0 91
🟡 package 反馈中心                         Micr failed parsing, going for method 2...
反馈中心                         Microsoft.WindowsFeedbackHub_8wekyb3d8bbwe                1.2203.761.0 91
🟡 package Windows 地图                     Mi failed parsing, going for method 2...
Windows 地图                     Microsoft.WindowsMaps_8wekyb3d8bbwe                       11.2210.6.0 91
🟡 package Windows 记事本                   Mic failed parsing, going for method 2...
Windows 记事本                   Microsoft.WindowsNotepad_8wekyb3d8bbwe                    11.2210.5.0 91
🟡 package Windows 录音机                   Mic failed parsing, going for method 2...
Windows 录音机                   Microsoft.WindowsSoundRecorder_8wekyb3d8bbwe              11.2208.28.0 91
🟡 package Windows 终端                     Mi failed parsing, going for method 2...
Windows 终端                     Microsoft.WindowsTerminal                                 1.15.3466.0 91
🟡 package Xbox 主机小帮手                  Micro failed parsing, going for method 2...
Xbox 主机小帮手                  Microsoft.XboxApp_8wekyb3d8bbwe                           48.89.25001.0 91
🟡 package 手机连接                         Micr failed parsing, going for method 2...
手机连接                         Microsoft.YourPhone_8wekyb3d8bbwe                         1.22112.142.0 91
🟡 package Windows 媒体播放器               Micro failed parsing, going for method 2...
Windows 媒体播放器               Microsoft.ZuneMusic_8wekyb3d8bbwe                         11.2211.36.0 91
🟡 package 电影和电视                       Micro failed parsing, going for method 2...
电影和电视                       Microsoft.ZuneVideo_8wekyb3d8bbwe                         10.22091.10031.0 91
🟡 package 快速助手                         Micr failed parsing, going for method 2...
快速助手                         MicrosoftCorporationII.QuickAssist_8wekyb3d8bbwe          2.0.15.0 91
🟡 package 微信                             Te failed parsing, going for method 2...
微信                             Tencent.WeChat                                            3.8.1.26 91
🟡 package 腾讯会议                         Tenc failed parsing, going for method 2...
腾讯会议                         Tencent.TencentMeeting                                    3.14.6.409 91
🟡 package 邮件和日历                       micro failed parsing, going for method 2...
邮件和日历                       microsoft.windowscommunicationsapps_8wekyb3d8bbwe         16005.14326.21256.0 91
🟡 package 英特尔(R) 无线 Bluetooth(R)      {0000 failed parsing, going for method 2...
英特尔(R) 无线 Bluetooth(R)      {00000190-0220-2052-84C8-B8D95FA3C8C3}                    22.190.0.2 91
🟡 package Windows 电脑健康状况检查         {079396C failed parsing, going for method 2...
Windows 电脑健康状况检查         {079396CE-BC78-49BB-8F66-9EFEF812462F}                    3.7.2204.15001 91
🟡 package 网易云音乐                       NetEa failed parsing, going for method 2...
网易云音乐                       NetEase.CloudMusic                                        2.10.6.200601 91
🟢 Winget uninstallable packages search finished
🟢 Searching for string ""
🟢 Searching for string ""
🟢 Total packages: 113
🟢 Scoop search finished
🟢 Searching for string ""
🟢 Searching for string ""
🟡 Can't get custom interval time! (got value was '')
🟢 Total packages: 1
🟢 Scoop search finished
None
🟢 Winget search finished
🟢 Total packages: 5459
🔵 Copying log to the clipboard...
🟢 Log copied to the clipboard successfully!
🔵 Copying log to the clipboard...
@1889737514 1889737514 added the bug Something isn't working label Oct 31, 2022
@marticliment
Copy link
Owner

This issue has been fixed, and the fix will come with the next WingetUI release

@1889737514
Copy link
Author

Seems like the issue reoccurs in the latest version(1.6.0).
I have updated the information about it.

@marticliment marticliment reopened this Jan 31, 2023
@marticliment marticliment changed the title [BUG/ISSUE] Wrong package ID parsing in Software Update Tab [BUG/ISSUE] Wrong package ID parsing in Software Update Tab and winget 1.4 Jan 31, 2023
@marticliment marticliment added this to the Bugs milestone Feb 14, 2023
@Nereithr
Copy link

Nereithr commented Mar 16, 2023

This seems to be related, although I have no language-related parsing errors in the log. Some of the (what I assume to be) UI component names are being interpreted as package names in the updates section for some reason.

image

I must also note the following:

  • The Discord I have installed on my system is from Chocolatey
  • I briefly had Chocolatey version 2.0 alpha on my system
  • This parsing issue occurred when I opened Software Updates with the aforementioned alpha + WingetUI 1.6.2
  • These non-existent packages are not present in my winget-cli log or installed applications, only in the Software Updates tab
  • The issue persists with Chocolatey disabled and cache cleared for everything.
C:\Users\sol\AppData\Local\Programs\WingetUI\sudo\gsudo.exe
C:\Users\sol\AppData\Local\Programs\WingetUI\sudo
🟢 checkQueue Thread started!
🟢 Using cached lang file
🟡 Using bundled lang file (forced=True)
It took 0.030649185180664062 to load all language files
🔵 Starting main application...
Scanning for instances...
Found lock file(s), reactivating...
🔵 Starting update check
b'v1.4.10173\r\n'
None
updating winget
🔵 Language file up-to-date
🟢 Downloaded latest metadata to local file
🔵 Loaded metadata from local file
🔵 Version URL: https://versions.marticliment.com/versions/wingetui.ver
🟢 Updates found!
Reactivation signal ignored: RaiseWindow_[1678973520.412811]
{'wingetFound': True, 'scoopFound': False, 'chocoFound': False, 'sudoFound': True, 'wingetVersion': 'v1.4.10173\r', 'scoopVersion': 'Scoop is disabled', 'chocoVersion': 'Chocolatey is disabled', 'sudoVersion': 'gsudo v2.0.4 (Branch.tags-v2.0.4.Sha.506efa024af0cef6e4b0cfec42e0c8c5d0b1472c)\r'}
Reached main ui load milestone
🔵 Is Dark
Can't disconnect
🟢 Starting winget search, winget on C:\Users\sol\AppData\Local\Programs\WingetUI\winget-cli\winget.exe...
🟢 Discover tab loaded
Can't disconnect
🟢 Starting winget search, winget on C:\Users\sol\AppData\Local\Programs\WingetUI\winget-cli\winget.exe...
🟢 Upgrades tab loaded
Can't disconnect
🟢 Starting winget search, winget on C:\Users\sol\AppData\Local\Programs\WingetUI\winget-cli\winget.exe...
🟢 Discover tab loaded
{'System language': 'default', 'Arabic - عربي\u200e (95%)': 'ar', 'Bulgarian - български (88%)': 'bg', 'Bangla - বাংলা (25%)': 'bn', 'Catalan - Català': 'ca', 'Czech - Čeština (95%)': 'cs', 'Danish - Dansk (47%)': 'da', 'German - Deutsch (88%)': 'de', 'English - English': 'en', 'Spanish - Castellano': 'es', 'French - Français': 'fr', 'Hindi - हिंदी (76%)': 'hi', 'Hungarian - Magyar': 'hu', 'Italian - Italiano': 'it', 'Indonesian - Bahasa Indonesia (22%)': 'id', 'Japanese - 日本語 (82%)': 'ja', 'Korean - 한국어 (92%)': 'ko', 'Dutch - Nederlands (95%)': 'nl', 'Polish - Polski (95%)': 'pl', 'Portuguese (Brazil) (95%)': 'pt_BR', 'Portuguese (Portugal) (95%)': 'pt_PT', 'Russian - Русский (76%)': 'ru', 'Serbian - Srpski (20%)': 'sr', 'Turkish - Türkçe (79%)': 'tr', 'Ukranian - Yкраї́нська (79%)': 'ua', 'Simplified Chinese (China) (95%)': 'zh_CN', 'Traditional Chinese (Taiwan) (95%)': 'zh_TW'}
['System language', 'Arabic - عربي\u200e (95%)', 'Bulgarian - български (88%)', 'Bangla - বাংলা (25%)', 'Catalan - Català', 'Czech - Čeština (95%)', 'Danish - Dansk (47%)', 'German - Deutsch (88%)', 'English - English', 'Spanish - Castellano', 'French - Français', 'Hindi - हिंदी (76%)', 'Hungarian - Magyar', 'Italian - Italiano', 'Indonesian - Bahasa Indonesia (22%)', 'Japanese - 日本語 (82%)', 'Korean - 한국어 (92%)', 'Dutch - Nederlands (95%)', 'Polish - Polski (95%)', 'Portuguese (Brazil) (95%)', 'Portuguese (Portugal) (95%)', 'Russian - Русский (76%)', 'Serbian - Srpski (20%)', 'Turkish - Türkçe (79%)', 'Ukranian - Yкраї́нська (79%)', 'Simplified Chinese (China) (95%)', 'Traditional Chinese (Taiwan) (95%)']
en
{'default': 'System language', 'ar': 'Arabic - عربي\u200e (95%)', 'bg': 'Bulgarian - български (88%)', 'bn': 'Bangla - বাংলা (25%)', 'ca': 'Catalan - Català', 'cs': 'Czech - Čeština (95%)', 'da': 'Danish - Dansk (47%)', 'de': 'German - Deutsch (88%)', 'en': 'English - English', 'es': 'Spanish - Castellano', 'fr': 'French - Français', 'hi': 'Hindi - हिंदी (76%)', 'hu': 'Hungarian - Magyar', 'it': 'Italian - Italiano', 'id': 'Indonesian - Bahasa Indonesia (22%)', 'ja': 'Japanese - 日本語 (82%)', 'ko': 'Korean - 한국어 (92%)', 'nl': 'Dutch - Nederlands (95%)', 'pl': 'Polish - Polski (95%)', 'pt_BR': 'Portuguese (Brazil) (95%)', 'pt_PT': 'Portuguese (Portugal) (95%)', 'ru': 'Russian - Русский (76%)', 'sr': 'Serbian - Srpski (20%)', 'tr': 'Turkish - Türkçe (79%)', 'ua': 'Ukranian - Yкраї́нська (79%)', 'zh_CN': 'Simplified Chinese (China) (95%)', 'zh_TW': 'Traditional Chinese (Taiwan) (95%)'}
Can't disconnect
🟢 Settings tab loaded!
🟢 About tab loaded!
🟢 Main application loaded...
Name           Id             Version       Available
🟢 Winget search finished
🟢 Searching for string ""
🟢 Searching for string ""
🟡 Can't get custom interval time! (got value was '')
🟢 Total packages: 4
🟢 Winget uninstallable packages search finished
🟢 Searching for string ""
🟢 Searching for string ""
🟢 Total packages: 132
None
🟢 Winget search finished
🟢 Total packages: 4314
🔵 Hash:  b99f9498144731d6965dbd223863279b18eedd4eac6107a4d77ff0c7172fbce9
🟢 Hash ok, starting update
🔵 Copying log to the clipboard...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready-to-go
Projects
None yet
Development

No branches or pull requests

3 participants