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

Open from GitHub - Index was out of range #2095

Closed
jcansdale opened this Issue Nov 30, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@jcansdale
Copy link
Collaborator

jcansdale commented Nov 30, 2018

Versions

  • GitHub Extension for Visual Studio version: 2.6.0 (dev)
  • Visual Studio version: 2017

What happened

Reported by @StanleyGoldman here #2060 (comment).

I opened the dialog with some random markdown in my clipboard.

image

2018-11-30 07:54:17.636 [22924] EROR [01] RepositorySelectViewModel Error reading repository list from GitHub.Primitives.HostAddress
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at Octokit.GraphQL.Core.PagedQuery`1.Runner.<RunPage>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Octokit.GraphQL.ConnectionExtensions.<Run>d__2`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at GitHub.Services.RepositoryCloneService.<ReadViewerRepositories>d__10.MoveNext() in C:\Users\Spade\Projects\GitHub\VisualStudio\src\GitHub.App\Services\RepositoryCloneService.cs:line 107
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at GitHub.ViewModels.Dialog.Clone.RepositorySelectViewModel.<Activate>d__37.MoveNext() in C:\Users\Spade\Projects\GitHub\VisualStudio\src\GitHub.App\ViewModels\Dialog\Clone\RepositorySelectViewModel.cs:line 111

@meaghanlewis meaghanlewis added the bug label Nov 30, 2018

@meaghanlewis

This comment has been minimized.

Copy link
Contributor

meaghanlewis commented Dec 4, 2018

I get this error consistently (on the latest version in master) and even when there is nothing in my clipboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment