Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

[Help] How to connect to my TFS account? #294

Closed
EslamNasser opened this issue Jul 25, 2017 · 8 comments
Closed

[Help] How to connect to my TFS account? #294

EslamNasser opened this issue Jul 25, 2017 · 8 comments

Comments

@EslamNasser
Copy link

I followed the instructions on the README file:

  • Set up a git repo and clone it locally.
  • Sign up for TFS account and make a project there etc.

But when i open VSC i try to using the Team: Signin command i keep getting this error message:

"(team) No Team Services or Team Foundation Server repository configuration was found. Ensure you've opened a folder that contains a repository."

Although i have a folder with a git repo opened on VSC.

Am i missing something or doing something wrong?

@jeffyoung
Copy link
Contributor

Hi @EslamNasser, thanks for trying out the extension.

After cloning a repository from Team Services, it should be as easy as opening the root folder of the repository in VS Code. The extension will detect that it is a Git repo, determine that it is cloned from Team Services and ask you to run signin since you haven't provided any credentials yet. You can do this by providing your own PAT or by going through the new automatic flow. If that doesn't work, could you enable debug logging and provide the team-extension.log file here?

@EslamNasser
Copy link
Author

@jeffyoung I got it working, i think i was still using the repo cloned from GitLab instead of the one on Team Services.
Thanks a lot

@jeffyoung
Copy link
Contributor

That's great to hear @EslamNasser. Thanks for letting me know you got it resolved.

@gitmasoud
Copy link

Yeah all that's needed for some is to clone a repo into another Dir. As I found out in my situation I was cloning into an old dir which I believe had some left over Git files and settings. Another option is to find these and delete these left over files and settings first > then re clone >Team: sign in.

@luisnjuarez
Copy link

HI Guys, I am having a similar issue, I enabled debug in VS Code and I received this

2018-01-24T05:32:01.403Z - debug: [105764] Reinitializing due to onDidChangeConfiguration
2018-01-24T05:32:01.404Z - debug: [105764] Polling interval value (minutes): 5
2018-01-24T05:32:01.406Z - info: [105764] *** FOLDER: e:\source ***
2018-01-24T05:32:01.406Z - info: [105764] VSTSVSCode/1.122.0 (VSCode 1.19.2; Windows_NT 10.0.16299; Node 7.9.0)
2018-01-24T05:32:01.406Z - debug: [105764] Looking for an External Context at e:\source
2018-01-24T05:32:01.406Z - debug: [105764] No External Context at e:source
2018-01-24T05:32:01.407Z - debug: [105764] Looking for TFVC repository at e:\source
2018-01-24T05:32:01.407Z - debug: [105764] TFVC Creating Tfvc object with localPath='undefined'
2018-01-24T05:32:01.409Z - debug: [105764] Using TFS proxy:
2018-01-24T05:32:01.409Z - debug: [105764] TFVC Retrieved from settings; localPath='C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\tf.exe'
2018-01-24T05:32:01.409Z - debug: [105764] TFVC Repository created with repositoryRootFolder='e:\source'
2018-01-24T05:32:01.410Z - debug: [105764] TFVC Repository.CheckVersion
2018-01-24T05:32:01.410Z - debug: [105764] TFVC: tf add -noprompt -?
2018-01-24T05:32:01.415Z - debug: [105764] TFVC: spawned new process (duration: 5ms)
2018-01-24T05:32:01.776Z - debug: [105764] TFVC: add exit code: 0 (duration: 365ms)
2018-01-24T05:32:01.776Z - debug: [105764] TFVC Minimum required version: 14.102.0
2018-01-24T05:32:01.776Z - debug: [105764] TFVC (TF.exe, TF.cmd) version: 15.117.26830.0
2018-01-24T05:32:01.776Z - debug: [105764] TFVC Repository.FindWorkspace with localPath='e:\source'
2018-01-24T05:32:01.776Z - debug: [105764] TFVC: tf workfold -noprompt ********
2018-01-24T05:32:01.782Z - debug: [105764] TFVC: spawned new process (duration: 6ms)
2018-01-24T05:32:02.033Z - debug: [105764] TFVC: workfold exit code: 100 (duration: 256ms)
2018-01-24T05:32:02.033Z - debug: [105764] TFVC errors (via stderr): Unable to determine the source control server.

2018-01-24T05:32:02.033Z - error: [105764] Could not find a workspace with mappings (e.g., not a TFVC repository, wrong version of TF is being used). Unable to determine the source control server.

Any thoughts?

@luisnjuarez
Copy link

Do not worry about this one, I was using SSH authentication, but there is an outstanding bug/issue microsoft/vscode#13680. For now I am using HTTPS

@maninder-itpl
Copy link

Hi,
I am new to Visual Studio Code 1.20.1. I have installed it on linux and want to integrate the code with my tfs server. I have clone the repository from server using https://github.com/Microsoft/team-explorer-everywhere/releases link but for some reason when I run the Team:Signin I get the error on top as "command 'team.Signin' not found".
Can anyone please help me.
Its Ubuntu 14.04 LTS 64 bit system.
thanks in advance.

@MaxiPalle
Copy link

You have to install an extension to connect to the corresponding repo. Try 'Azure Repos' under extensions.

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

No branches or pull requests

6 participants