Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2019.4.X, 2020.3.X, 2021.1.X, 2021.2.X
Votes
0
Found in
2019.4.21f1
Issue ID
1324067
Regression
No
UnityEditor.PackageManager.Client.Remove returns confusing error when project manifest does not have a "dependencies" property
Summary:
Attempting to remove a package using UnityEditor.PackageManager.Client.Remove will return the following error if the project manifest "dependencies" property does not exist:
"Cannot use 'in' operator to search for '<package-name>' in undefined"
Repro steps:
The attached project contains a "DoRemove.cs" script which adds a menu item under "DEBUG -> Remove". This will log an error containing the message from the Package Manager Remove request.
1. Open the attached project in Unity
2. In the menu bar, click "DEBUG" then "Remove"
Expected behaviour:
The Package Manager Client should return an error stating that the package cannot be removed because the dependency does not exist in the project manifest.
Actual behaviour:
The Package Manager Client returns an error stating that the 'in' operator cannot be used.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Can not navigate through the Scene view when using a drawing tablet
- Crash on EditorDisplayDialogProc when opening Dialog box containing buttons with unusually long labels
- Crash on AsyncWriteImageToR2dFile when baking lightmaps using custom parameter with 16x Anti Aliasing samples
- Application Cloud Connection Id is incorrect when using Build Profile with Player Setting Overrides.
- [Android] [GameActivity] UI is unresponsive when Application Entry Point is set to GameActivity
Add comment