Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Unable to create repository in VS2015 #1446

Closed
meaghanlewis opened this issue Jan 31, 2018 · 0 comments
Closed

Unable to create repository in VS2015 #1446

meaghanlewis opened this issue Jan 31, 2018 · 0 comments
Labels

Comments

@meaghanlewis
Copy link
Contributor

Version

  • GitHub Extension for Visual Studio version:
    2.4.0.1161
  • Visual Studio version:
    Microsoft Visual Studio Community 2015
    Version 14.0.25431.01 Update 3

What happened
I try to create a GitHub or ghe.io repository in VS2015, but nothing happens after I press the create button.
screen shot 2018-01-31 at 2 56 07 pm

In the log, I see:

System.InvalidOperationException: Could not locate any instances of contract Microsoft.TeamFoundation.Git.Controls.Extensibility.IGitRepositoriesExt.
   at GitHub.VisualStudio.GitHubServiceProvider.GetService(Type serviceType) in C:\projects\visualstudio\src\GitHub.VisualStudio\Services\GitHubServiceProvider.cs:line 192
   at GitHub.VisualStudio.GitHubServiceProvider.GetService[T]() in C:\projects\visualstudio\src\GitHub.VisualStudio\Services\GitHubServiceProvider.cs:line 198
   at GitHub.VisualStudio.GitHubProviderDispatcher.GetService[T]() in C:\projects\visualstudio\src\GitHub.VisualStudio\Services\GitHubServiceProvider.cs:line 61
   at GitHub.Services.VSGitServices.<Clone>d__5.MoveNext() in C:\projects\visualstudio\src\GitHub.TeamFoundation.14\Services\VSGitServices.cs:line 79
--- 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 GitHub.Services.RepositoryCloneService.<CloneRepository>d__6.MoveNext() in C:\projects\visualstudio\src\GitHub.App\Services\RepositoryCloneService.cs:line 66```


**Note:** This is only a problem with VS2015 and VS2017 works as expected.
grokys added a commit that referenced this issue Feb 1, 2018
`DoCreate` needs to set `ServiceProvider.GitServiceProvider` in order for
`IGitRepositoriesExt` to be found to clone the created repository.

Fixes #1446
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant