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

Package Manager, Unity 2018.2: open Utility Panel causing many editor errors #238

Closed
laicasaane opened this issue Jul 29, 2018 · 4 comments

Comments

@laicasaane
Copy link

laicasaane commented Jul 29, 2018

I've made DOTween a custom package to be used with the new Package Manager of Unity 2018.2.
image

Everything works well except the Utility Panel: it's all blank. And these are the error logs I've received:

ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
Parameter name: startIndex
System.String.Substring (System.Int32 startIndex, System.Int32 length) (at <f826c2584fc94ec19a48a6576640bdc5>:0)
System.String.Substring (System.Int32 startIndex) (at <f826c2584fc94ec19a48a6576640bdc5>:0)
DG.DOTweenEditor.Core.EditorUtils.StoreEditorADBDir () (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTweenEditor/Core/EditorUtils.cs:233)
DG.DOTweenEditor.Core.EditorUtils.get_editorADBDir () (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTweenEditor/Core/EditorUtils.cs:21)
DG.DOTweenEditor.DOTweenUtilityWindow.OnEnable () (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTweenEditor/DOTweenUtilityWindow.cs:131)
UnityEditor.EditorWindow:GetWindow(Boolean, String, Boolean)
DG.DOTweenEditor.DOTweenUtilityWindow:Open() (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTweenEditor/DOTweenUtilityWindow.cs:106)
DG.DOTweenEditor.DOTweenUtilityWindow:ShowWindow() (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTweenEditor/DOTweenUtilityWindow.cs:84)
ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
Parameter name: startIndex
System.String.Substring (System.Int32 startIndex, System.Int32 length) (at <f826c2584fc94ec19a48a6576640bdc5>:0)
System.String.Substring (System.Int32 startIndex) (at <f826c2584fc94ec19a48a6576640bdc5>:0)
DG.DOTweenEditor.Core.EditorUtils.FullPathToADBPath (System.String fullPath) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTweenEditor/Core/EditorUtils.cs:160)
DG.DOTweenEditor.DOTweenUtilityWindow+LocationData..ctor (System.String srcDir) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTweenEditor/DOTweenUtilityWindow.cs:358)
DG.DOTweenEditor.DOTweenUtilityWindow.Connect (System.Boolean forceReconnect) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTweenEditor/DOTweenUtilityWindow.cs:293)
DG.DOTweenEditor.DOTweenUtilityWindow.OnGUI () (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTweenEditor/DOTweenUtilityWindow.cs:146)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <f826c2584fc94ec19a48a6576640bdc5>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <f826c2584fc94ec19a48a6576640bdc5>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <f826c2584fc94ec19a48a6576640bdc5>:0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:295)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:288)
UnityEditor.HostView.OldOnGUI () (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:104)
UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, System.Boolean isComputingLayout) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:215)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
@Demigiant
Copy link
Owner

Ahoy!

DOTween's editor will have many more errors other than that, because it requires DOTween to be in the project folder as of now.

The package manager is not truly open yet for packages that are not Unity's own (though Unity is working on it for the future), so I think it would really be better to postpone this to when it's ready :P On a secondary note, I'll soon release a big modular upgrade to DOTween that will allow it to enable/disable modules just like the Package Manager does.

@laicasaane
Copy link
Author

My problem doesn't concern the modular DOTween issue. Because I have many projects that use a same set of packages so I've just put them into one directory and make the Package Manager reading from there.

@Demigiant
Copy link
Owner

I understand. But I prefer to wait for the Package Manager to be really ready for external assets before I change DOTween's code to allow it (also because it won't be an easy task—there will be a lot of stuff to change in the editor).

@matheusamazonas
Copy link

Any updates on this? We package DOTween internally so multiple projects can use the same package and get updates whenever we choose to, but this issue stops us from using DOTween via the package manager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants