microsoft / winget-pkgs

The Microsoft community Windows Package Manager manifest repository
MIT License
8.52k stars 4.4k forks source link

[Package Issue]: SublimeHQ.SublimeText.4 (Unknown Version Number) #126287

Open xd003 opened 10 months ago

xd003 commented 10 months ago

Please confirm these before moving forward

Category of the issue

Other

Brief description of your issue

winget upgrade --include-unknown command reports the Sublime Text 4 package has version number that cannot be determined

Steps to reproduce

Simply run a winget upgrade

Expected behavior

It should correctly report the version which has been installed in the system

Environment

❯ winget --info
Windows Package Manager v1.6.2771
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.2361
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.21.2771.0

Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled

Screenshots and Logs

image

Additional Info

Sublime text 4 installed version is 4.0.0.415200 which was installed through winget only. It shows version number correctly on search but reports unknown version once installed. This particular version was added through this PR

❯ winget search SublimeHQ.SublimeText.4
Name           Id                               Version      Source
--------------------------------------------------------------------
Sublime Text 4 SublimeHQ.SublimeText.4          4.0.0.415200 winget
vikingnope commented 4 months ago

@xd003 if you could kindly close this issue it would be great. This is a known issue which has been there for some time. Sadly we are unable to fix it yet if Sublime do not decide to update their package with a DisplayVersion.

sharkman commented 3 weeks ago

Having the same issue with the latest update.

Is anybody from @sublimehq working on resolving this?