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

Clone from VS 2019 Clone dialog doesnt work on First Launch #2218

Closed

Description

@prasethu

Install the github extension with the changes related to cloning from Get To Code

Attempt to clone on the very first launch.

Notice that the GitHub dialog dismisses and Get To Code remains visible and no repo is cloned.

Activity

  1. prasethu commented on Feb 5, 2019

    @prasethu
    Author
  2. jcansdale commented on Feb 6, 2019

    @jcansdale
    Collaborator

    Damn, well this is a fun bug. 😉

    I think the issue is that when Visual Studio is launched for the very first time, no source control plug-in has been set. The current source control plug-in will automatically change to Git when a solution is opened from a Git repository.

    We can repo this by changing the current source control plug-in to None:
    image

    Relaunch Visual Studio and attempt to clone a repository using Clone or check out code > GitHub > Clone. The following will appear in the log:

    2019-02-06 09:47:47.720 [12532] EROR [01] RepositoryCloneService    Could not clone https://github.com/jcansdale/bin to C:\Source\github.com\jcansdale\bin
    System.InvalidOperationException: Could not locate any instances of contract Microsoft.VisualStudio.TeamFoundation.Git.Extensibility.IGitActionsExt.
       at GitHub.VisualStudio.GitHubServiceProvider.GetService(Type serviceType) in C:\Source\github.com\github\VisualStudio\src\GitHub.VisualStudio\Services\GitHubServiceProvider.cs:line 147
       at GitHub.VisualStudio.GitHubServiceProvider.GetService[T]() in C:\Source\github.com\github\VisualStudio\src\GitHub.VisualStudio\Services\GitHubServiceProvider.cs:line 153
       at GitHub.Services.VSGitServices.<Clone>d__7.MoveNext() in C:\Source\github.com\github\VisualStudio\src\GitHub.TeamFoundation.14\Services\VSGitServices.cs:line 92
    --- 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.TaskAwaiter.GetResult()
       at GitHub.Services.RepositoryCloneService.<CloneRepository>d__14.MoveNext() in C:\Source\github.com\github\VisualStudio\src\GitHub.App\Services\RepositoryCloneService.cs:line 215
    

    I'll start working on a fix.

  3. self-assigned this
    on Feb 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions