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

Unity2021.3.21 Error #126

Closed
chaoslife opened this issue Oct 29, 2022 · 10 comments
Closed

Unity2021.3.21 Error #126

chaoslife opened this issue Oct 29, 2022 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@chaoslife
Copy link

chaoslife commented Oct 29, 2022

image

In unity2021.3.21, it lost packageInfo

@chaoslife chaoslife added the bug Something isn't working label Oct 29, 2022
@haaanz
Copy link

haaanz commented Oct 31, 2022

I have this issue too, Unity 2021.3.12f1

@enpiech
Copy link

enpiech commented Nov 4, 2022

I have this too, Unity 2021.3.12f1

@SixParQuatre
Copy link

Still happening in 2021.3.13f1.

As a note to peeps watching this: it looks like PackageManager changed pretty significantly again (in an LTS of all places sigh).
I tried to do a local hack/fix and managed to get rid of the compile errors; even got the installation of new packages to work partially (seems to work with some repo, but not all) but couldn't get the update workflow to work properly - which is arguably the most important useful part.

Here's hoping @mob-sakai has got a solution in the pipe; and that it's not too much of a headache. :)

@SixParQuatre
Copy link

SixParQuatre commented Nov 23, 2022

For anybody interested, I've made a few changes and got the update to work... somehow.
The 'update' button shows all the time, but if a version is indeed available it will grab it.
There's still a huge amount of guesswork in what I've done: it's a lot of plugging holes without having a deep understanding of the whole... but if you have a clone of the repo locally, here's a patch file you can apply on main to get where I got to and maybe continue.
Note: I hadto put the .diff file in a zip because it wouldn't allow me to attach it directly
patch.zip

@ess4654
Copy link

ess4654 commented Nov 26, 2022

Your diff file does not work I keep getting this same problem.


ArgumentNullException: Value cannot be null.
Parameter name: source
System.Linq.Enumerable.Any[TSource] (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] predicate) (at <109e781b32ec464d8737a667de805742>:0)
UnityEditor.PackageManager.UI.Internal.UpmPackageVersion.get_hasEntitlementsError () (at <37f37e0608764fbd9fb36c76311e810e>:0)
UnityEditor.PackageManager.UI.Internal.BasePackage+<>c.<get_hasEntitlementsError>b__17_1 (UnityEditor.PackageManager.UI.Internal.IPackageVersion version) (at <37f37e0608764fbd9fb36c76311e810e>:0)
System.Linq.Enumerable.Any[TSource] (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] predicate) (at <109e781b32ec464d8737a667de805742>:0)
UnityEditor.PackageManager.UI.Internal.BasePackage.get_hasEntitlementsError () (at <37f37e0608764fbd9fb36c76311e810e>:0)
UnityEditor.PackageManager.UI.Internal.PageManager+<>c.b__94_0 (UnityEditor.PackageManager.UI.Internal.IPackage package) (at <37f37e0608764fbd9fb36c76311e810e>:0)
System.Linq.Enumerable+WhereEnumerableIterator1[TSource].MoveNext () (at <109e781b32ec464d8737a667de805742>:0) System.Linq.Enumerable.Any[TSource] (System.Collections.Generic.IEnumerable1[T] source) (at <109e781b32ec464d8737a667de805742>:0)
UnityEditor.PackageManager.UI.Internal.PageManager.Refresh (UnityEditor.PackageManager.UI.Internal.RefreshOptions options, System.Int32 pageSize) (at <37f37e0608764fbd9fb36c76311e810e>:0)
UnityEditor.PackageManager.UI.Internal.PageManager.Refresh (System.Nullable1[T] tab, System.Int32 pageSize) (at <37f37e0608764fbd9fb36c76311e810e>:0) UnityEditor.PackageManager.UI.Internal.PackageManagerWindowRoot.DelayRefresh (UnityEditor.PackageManager.UI.Internal.PackageFilterTab tab, System.String subPage) (at <37f37e0608764fbd9fb36c76311e810e>:0) UnityEditor.PackageManager.UI.Internal.PackageManagerWindowRoot.CreateGUI () (at <37f37e0608764fbd9fb36c76311e810e>:0) UnityEditor.PackageManager.UI.PackageManagerWindow.CreateGUI () (at <37f37e0608764fbd9fb36c76311e810e>:0) System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <d6232873609549b8a045fa15811a5bd3>:0) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <d6232873609549b8a045fa15811a5bd3>:0) System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <d6232873609549b8a045fa15811a5bd3>:0) UnityEditor.UIElements.DefaultEditorWindowBackend.Invoke (System.String methodName) (at <71490f95a19640fc8659d65903937f08>:0) UnityEditor.UIElements.DefaultEditorWindowBackend.SendInitializeIfNecessary (System.Boolean duringOnCreate) (at <71490f95a19640fc8659d65903937f08>:0) UnityEditor.UIElements.DefaultEditorWindowBackend.RegisterWindow (System.Boolean duringOnCreate) (at <71490f95a19640fc8659d65903937f08>:0) UnityEditor.UIElements.DefaultEditorWindowBackend.UnityEditor.IEditorWindowBackend.OnRegisterWindow () (at <71490f95a19640fc8659d65903937f08>:0) UnityEditor.HostView.RegisterSelectedPane (System.Boolean sendEvents) (at <6a5b55f2e18b419e9faedac06ac6af94>:0) UnityEditor.HostView.SetActualViewInternal (UnityEditor.EditorWindow value, System.Boolean sendEvents) (at <6a5b55f2e18b419e9faedac06ac6af94>:0) UnityEditor.DockArea.SetSelectedPrivate (System.Int32 value, System.Boolean sendEvents) (at <6a5b55f2e18b419e9faedac06ac6af94>:0) UnityEditor.DockArea.AddTab (System.Int32 idx, UnityEditor.EditorWindow pane, System.Boolean sendPaneEvents) (at <6a5b55f2e18b419e9faedac06ac6af94>:0) UnityEditor.DockArea.AddTab (UnityEditor.EditorWindow pane, System.Boolean sendPaneEvents) (at <6a5b55f2e18b419e9faedac06ac6af94>:0) UnityEditor.EditorWindow.CreateNewWindowForEditorWindow (UnityEditor.EditorWindow window, System.Boolean loadPosition, System.Boolean showImmediately, System.Boolean setFocus) (at <6a5b55f2e18b419e9faedac06ac6af94>:0) UnityEditor.EditorWindow.Show (System.Boolean immediateDisplay) (at <6a5b55f2e18b419e9faedac06ac6af94>:0) UnityEditor.EditorWindow.Show () (at <6a5b55f2e18b419e9faedac06ac6af94>:0) UnityEditor.EditorWindow.GetWindowPrivate (System.Type t, System.Boolean utility, System.String title, System.Boolean focus) (at <6a5b55f2e18b419e9faedac06ac6af94>:0) UnityEditor.EditorWindow.GetWindow (System.Type t, System.Boolean utility, System.String title, System.Boolean focus) (at <6a5b55f2e18b419e9faedac06ac6af94>:0) UnityEditor.EditorWindow.GetWindow[T] (System.Boolean utility, System.String title, System.Boolean focus) (at <6a5b55f2e18b419e9faedac06ac6af94>:0) UnityEditor.EditorWindow.GetWindow[T] () (at <6a5b55f2e18b419e9faedac06ac6af94>:0) UnityEditor.PackageManager.UI.PackageManagerWindow.SelectPackageAndFilterStatic (System.String packageToSelect, System.Nullable1[T] filterTab, System.Boolean refresh, System.String searchText) (at <37f37e0608764fbd9fb36c76311e810e>:0)
UnityEditor.PackageManager.UI.PackageManagerWindow.OpenPackageManager (System.String packageToSelect) (at <37f37e0608764fbd9fb36c76311e810e>:0)
UnityEditor.PackageManager.UI.Window.Open (System.String packageToSelect) (at <37f37e0608764fbd9fb36c76311e810e>:0)
UnityEditor.PackageManager.UI.Window.ShowPackageManagerWindow (UnityEditor.MenuCommand item) (at <37f37e0608764fbd9fb36c76311e810e>:0)

@SixParQuatre
Copy link

Sorry, I can't repo this error on my end (2021.3.14f1 on windows) and ith my current understanding of the packagemanager and this package, I can't get any info out of this callstack.
Like I mentioned the changes I did are a 'best guess' so I can't guarantee universal success.
Sorry that it didn't work for you :/

@GID0317
Copy link

GID0317 commented Dec 12, 2022

206834430-c9470432-13cd-4a94-9d92-09586918bc4a

Before i upgrade my unity (Unity 2022.1.24) to Unity 2022.2.0f1 the this package still working and after i upgrade to the latest Unity 2022.2.0f1 "package info" error appear

@GID0317
Copy link

GID0317 commented Dec 12, 2022

In the unity 2022.1.24 i also encounter this issue but i got it solved by deleting the cache package and reset package to default. But in 2022.2.0f1 its not working again

@ujell
Copy link

ujell commented Dec 13, 2022

This is also happening in Unity 2020.3.42f1.

mob-sakai added a commit that referenced this issue Feb 21, 2023
github-actions bot pushed a commit that referenced this issue Feb 24, 2023
## [2.0.2](2.0.1...2.0.2) (2023-02-24)

### Bug Fixes

* support 2020.3.41f1, 2021.3.12f1, 2022.1.21f1, 2022.2.0f1, 2023.1.0b0 or later ([4109498](4109498)), closes [#124](#124) [#126](#126) [#128](#128)
@mob-sakai
Copy link
Owner

🎉 This issue has been resolved in version 2.0.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

No branches or pull requests

8 participants