UpmPackageVersionEx class throws several error messages in Unity versions 2021.3.21f1, 2022.2.10f1, 2023.1.0b7, or 2023.2.0a5 when UpmGitExtension package is installed. The error message shows that UpmPackageVersionEx is unable to convert the boolean type to UnityEditor.PackageManager.UI.Internal.RegistryType.
To Reproduce
Create a new project in Unity versions 2021.3.21f1, 2022.2.10f1, 2023.1.0b7, or 2023.2.0a5.
Install UpmGitExtension package.
Unity console shown as follows:
Library\PackageCache\com.coffee.upm-git-extension@2.0.2\Editor\Coffee.UpmGitExtension\Extensions\UpmPackageVersionEx.cs(42,46): error CS1503: Argument 3: cannot convert from 'bool' to 'UnityEditor.PackageManager.UI.Internal.RegistryType'
Library\PackageCache\com.coffee.upm-git-extension@2.0.2\Editor\Coffee.UpmGitExtension\Extensions\UpmPackageVersionEx.cs(51,68): error CS1503: Argument 5: cannot convert from 'bool' to 'UnityEditor.PackageManager.UI.Internal.RegistryType'
Library\PackageCache\com.coffee.upm-git-extension@2.0.2\Editor\Coffee.UpmGitExtension\Extensions\UpmPackageVersionEx.cs(60,96): error CS1061: 'UpmPackageVersion' does not contain a definition for 'isUnityPackage' and no accessible extension method 'isUnityPackage' accepting a first argument of type 'UpmPackageVersion' could be found (are you missing a using directive or an assembly reference?)
Expected behavior
No error messages should appear after installing UpmGitExtension package in the Unity versions mentioned above.
Environment:
UpmGitExtension version: 2.0.2
Platform: Editor(Windows/Mac)
Unity version:
2021.3.21f1
2022.2.10f1
2023.1.0b7
2023.2.0a5
Additional context
The issue seems to stem from a change made to the UpmPackageVersion class in the Unity PackageManagerUI module. Here are the relevant lines in the UnityCsReference repository:
Describe the bug
UpmPackageVersionEx
class throws several error messages in Unity versions2021.3.21f1
,2022.2.10f1
,2023.1.0b7
, or2023.2.0a5
when UpmGitExtension package is installed. The error message shows thatUpmPackageVersionEx
is unable to convert the boolean type toUnityEditor.PackageManager.UI.Internal.RegistryType
.To Reproduce
2021.3.21f1
,2022.2.10f1
,2023.1.0b7
, or2023.2.0a5
.UpmGitExtension
package.Expected behavior
No error messages should appear after installing
UpmGitExtension
package in the Unity versions mentioned above.Environment:
Additional context
The issue seems to stem from a change made to the
UpmPackageVersion
class in the UnityPackageManagerUI
module. Here are the relevant lines in theUnityCsReference
repository:https://github.com/Unity-Technologies/UnityCsReference/blob/51ea2ccbe18ad3c6328f4d43b00dc74eef3be5ff/Modules/PackageManagerUI/Editor/Services/Upm/UpmPackageVersion.cs#L106
https://github.com/Unity-Technologies/UnityCsReference/blob/51ea2ccbe18ad3c6328f4d43b00dc74eef3be5ff/Modules/PackageManagerUI/Editor/Services/Upm/UpmPackageVersion.cs#L116