Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Changes view erroring with ArgumentOutOfRangeException #257

@shana

Description

@shana

Our check of whether a child entry is a meta file or not is throwing exceptions.

How to repro:

  • Create a folder and name it LongFolderName, and create a C# script inside it and call it Shorty.
ArgumentOutOfRangeException: Argument is out of range.
Parameter name: startIndex
  at System.String.Substring (Int32 startIndex) [0x0001b] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/String.cs:333
  at GitHub.Unity.ChangesetTreeView.TreeNode (GitHub.Unity.FileTreeNode node) [0x0004d] in D:\code\github\Unity\src\UnityExtension\Assets\Editor\GitHub.Unity\UI\ChangesetTreeView.cs:124
  at GitHub.Unity.ChangesetTreeView.TreeNode (GitHub.Unity.FileTreeNode node) [0x00488] in D:\code\github\Unity\src\UnityExtension\Assets\Editor\GitHub.Unity\UI\ChangesetTreeView.cs:265
  at GitHub.Unity.ChangesetTreeView.OnGUI () [0x00106] in D:\code\github\Unity\src\UnityExtension\Assets\Editor\GitHub.Unity\UI\ChangesetTreeView.cs:54
  at GitHub.Unity.ChangesView.OnGUI () [0x00122] in D:\code\github\Unity\src\UnityExtension\Assets\Editor\GitHub.Unity\UI\ChangesView.cs:111
  at GitHub.Unity.Window.OnUI () [0x00032] in D:\code\github\Unity\src\UnityExtension\Assets\Editor\GitHub.Unity\UI\Window.cs:167
  at GitHub.Unity.BaseWindow.OnGUI () [0x00056] in D:\code\github\Unity\src\UnityExtension\Assets\Editor\GitHub.Unity\UI\BaseWindow.cs:103
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000d0] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions