MrJoy / UnityREPL

C# REPL tool for Unity3D built on Miguel's tool.
MIT License
101 stars 13 forks source link

Intermittent exception.... #1

Closed MrJoy closed 14 years ago

MrJoy commented 14 years ago

Occasional exceptions showing up. I suspect it's an order-of-operations issue involving the history being updated at the wrong time. Need to track history length and update it at the top of the layout event.

----snip----

ArgumentException: Getting control 0's position in a group with only 0 controls when doing KeyDown Aborting

UnityEngine.GUILayoutGroup.GetNext () UnityEngine.GUILayoutUtility.DoGetRect (Single minWidth, Single maxWidth, Single minHeight, Single maxHeight, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) [0x00000] UnityEngine.GUILayoutUtility.GetRect (Single width, Single height, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) [0x00000] UnityEngine.GUILayout.FlexibleSpace () Shell.ShowHistory () (at Assets\Lib\Editor\MrJoy-UnityREPL-85117ec\MrJoy-UnityREPL-85117ec\Shell.cs:603) Shell.OnGUI () (at Assets\Lib\Editor\MrJoy-UnityREPL-85117ec\MrJoy-UnityREPL-85117ec\Shell.cs:619) System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]

MrJoy commented 14 years ago

No longer relevant.