Error: repository checked out but no solution found - when cloning Github repo using Visual Studio 2019 for Mac - github

Using Visual Studio for Mac (vs 8.10.14) I am trying to clone an existing Github repository.
In Visual Studio I navigate to Version Control/Clone Repository... I fill out the https path (copied from my Github repo) and hit the Clone button. Prompted for Username I enter my Github username and for password I use my freshly generated PAT (Personal Access Token) with credentials for "repo"=Full control of private repositories.
Then the clone process starts but immediately stops with error message: "Repository checked out but no solution found". After selecting the only option "OK", the process stops fully without cloning a single line of code.
Has anyone found a solution already?

Related

Github is not working in Visual Studio Code

I have tried to install the GitHub pull and request extensions in the Visual Studio Code.I installed it. But when I searched "Github" in the Visual Studio there is nothing showing in the visual studio code.
Your question is not clear, but I will try to answer it based on my understanding.
Try with Ctrl+Shift+P and search git, you should see all git commands.
From the official website:
To get started with the GitHub in VS Code, you'll need to install Git, create a GitHub account and install the GitHub Pull Requests and Issues extension.
Once you've installed the GitHub Pull Requests and Issues extension, you'll need to sign in.
After this, you can search for and clone a repository from GitHub using the Git: Clone command in the Command Palette (Ctrl+Shift+P) or by using the Clone Repository button in the Source Control view (available when you have no folder open).

FailedRequest: Service Unavailable(503) for TFS on Visual Studio Code

I'm trying to integrate VSCode with TFS using this Stackoverflow answer.
I have installed the Azure Repos extension and in my settings.json folder, I have done the following:
{
"tfvc.location": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\TF.exe",
"tfvc.restrictWorkspace": true
}
While trying to do the team signin portion through the command palette however, I'm prompted with this message:
Provide the username for server (servername:8080)
I enter this and my password, but the connection fails. On the bottom of my VSCode window, I can see this error message when I hover my mouse over the "Team" text:
Failed Request: Service Unavailable(503) - http://servername:8080/tfs/companyprojectcollection/_apis/tfvc/branches
I'm a bit confused. On Visual Studio 2019, to add a server I just had to add the url as http://servername:8080/tfs and login with my credentials, after which I was able to view the workspace/folder that was created for me.
Do I need to edit the initial server it requests me to log into as "http://servername:8080/tfs" instead of "servername:8080", and if so, how?
Why does the error say service unavailable with added folders like companyprojectcollection/_apis/tfvc/branches? How do I fix this?
I could use Visual Stuio 2019, but VSCode is my preferred editor.
EDIT: The error while hovering over the Team button. This is the same format in which I saw the 503 error earlier, except that said "Service Unavailable(503)"
Failed Request: Service Unavailable(503) - http://servername:8080/tfs/companyprojectcollection/_apis/tfvc/branches
From the error message, it seems that the linked URL has some issue. Generally, the URL to connect to the tfvc repo is like this:
http://servername:8080/tfs/DefaultCollection/tfvcrepo
Here are the steps to link the TFVC repo in VS code:
Step1: Create a workspace and map the workspace to local machine in Visual Studio 2019.
Then the Tfvc Repo will be checked out in the path.
Step2: Open either the root folder or a sub-folder of the TFVC repository (workspace path in step1) in VS code.
Step3: Run the team signin command and input the Username and Password. Then the VS code could connect with the TFVC repo.
In this process, there is no process of customizing the URL, it will automatically recognize the tfvc repo related to the workspace.
Note: the settings.json file is still required for TFVC repo. Your settings are correct.
For mode detailed information, you could refer to this Guidance document.

VS Code: Get 'Bad credentials' when using Clone Repository

I use vscode version 1.45.1. I get 'Bad credentials' when using Clone Repository. Lately I changed my username at github. That could be the reason. How do I tell vs code that?
You'll need to open up Credential Manager in Windows and delete (or edit) the Github account there:
You'll need to restart Visual Studio Code for it to prompt you to login to Github again.
Also note that you may need to revoke the OAuth connection in Github under https://github.com/settings/applications:

Unable To Clone Azure DevOps Repo From VSOnline

I'm attempting to clone a repo into my workspace on Visual Studio Code Online (Chrome browser) using the Azure Repos extension (https://online.visualstudio.com/environments):
When I attempt to execute the Team: Signin command, I get the error:
When I attempt to clone the repo from the terminal I get:
vsonline:~/workspace$ git clone https://dev.azure.com/MyOrganization/MyProject/_git/MyApp
Cloning into 'MyAppApp'...
Username for 'https://dev.azure.com': myemail#mycompany.com
Password for 'https://myemail#mycompany.com#dev.azure.com':
fatal: Authentication failed for 'https://dev.azure.com/MyOrganization/MyProject/_git/MyApp'
I have this setup with no problem in VS Code on my desktop, what am I doing wrong?
This error is caused by authentication when clone a repo from Azure DevOps Repos, it also led to your Azure Repos extension could not find a repo.
Please check Authentication overview and make sure the Username and Password are correct and workable.
I have been working on this for several days and I finally managed to crack it. 1. select clone in vscode 2. it will ask you to open on new vscode window so click yes 3. head over to devOps and click on generate git credentials 4. copy the long password and paste it in upper password field prompt in vscode
this worked for me so well, happy coding?

Visual Studio Code GitHub account

I have a Visual Studio Code project for an Angular2 app created using AngularCli (webpack version). Out of the box, AngularCli will generate a new project for you and check it into Git. How do you know which GitHub account it's using? I cannot find any information in Visual Studio as to what GitHub account is controlling the code history. I can make changes to the code and check it in using Visual Studio Code's embedded Git functionality. I've logged into GitHub using my account, but I do not see this new project. Where do you find information on what GitHub account either AngualrCli and/or Visual Studio Code is using?
How do you know which GitHub account it's using?
It doesn't need to use any github account to create a git repo. It's just calling git init, followed by some git add/git commit commands. You can do those without github credentials. After the tool does its job, you have a fully-functional local git repo.
You only need github account when you try to push code to github, which you did not yet do, I assume. You don't need github credentials to work with local repository (view history, add new commits, branch, merge, etc.)