Search Issue Tracker
Fixed
Fixed in 6000.5.0a8
Won't Fix in 6000.4.X
Under Consideration for 6000.3.X
Votes
0
Found in
6000.3.5f1
6000.4.0b5
6000.5.0a5
Issue ID
UUM-132471
Regression
No
Applying duplicate Dependencies in Package Manifest throws “ArgumentException” instead of preventing applying changes
Steps to reproduce:
1. Create new Unity project
2. Open Package Manager
3. Create a new Package
4. Select to edit new Package Manifest in Inspector
5. In Inspector, Dependencies press “+” to add multiple packages with versions
6. Press “Apply”
7. Observe the Console window
Actual results: Error is thrown: “ArgumentException: An item with the same key has already been added. Key: com.unity.test-framework
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <c818795a2e354f2faac5f8cee1240e70>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <c818795a2e354f2faac5f8cee1240e70>:0)
UnityEditor.PackageManager.UI.Internal.PackageManifestImporterEditor.WritePackageManifest (UnityEngine.Object target, UnityEditor.PackageManager.UI.Internal.PackageManifestImporterEditor+PackageManifestState packageState) (at /Users/bokken/build/output/unity/unity/Modules/PackageManagerUI/Editor/UI/PackageManifestImporterEditor.cs:829)”
Expected results: Adding a package with the same name and version should not be allowed, “Apply” button should be greyed out
Reproducible with versions: 6000.3.5f1, 6000.4.0b5, 6000.5.0a5
Can’t test with versions: 6000.0.66f1 (no such functionality)
Tested on (OS): macOS Silicon Tahoe 26.2 (M1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “FMOD failed to set the software format to the custom sample rate…” warnings are thrown as System Sample Rate value is being changed in Audio section of Project Settings window
- VFX Marquee selection does match the visual indicator
- “Invalid AABB aabb” errors are spammed when “Infinity” value is entered in Collider Component fields
- Editor Role does not sync with the MPPM Play Mode Scenario Role when entering Play mode
- Long asset names cause overlap with the “Find” function in search result tabs
Resolution Note:
Fixed in 6000.5.0a8
Resolution Note (fix version 6000.5.0a8):
Fixed in 6000.5.0a8
Resolution Note (6000.4.X):
Thank you for reporting a bug to Unity.
We have reviewed the issue carefully, and in this case, the team is unable to prioritize fixing this bug. There are a number of reasons we make this decision, including the impact and severity of the issue across our user and customer base, and the possibility that future plans may solve the problem in a different way, or that a workaround for the bug may be available.
Today we will be closing this case. Thank you again for taking the time to report this issue, and please let us know if there is anything else that changes the impact or severity of this issue.