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

TFVC & TFS 2015 Update 2 but can't connect #185

Closed
robertmuehsig opened this issue Apr 24, 2017 · 12 comments
Closed

TFVC & TFS 2015 Update 2 but can't connect #185

robertmuehsig opened this issue Apr 24, 2017 · 12 comments

Comments

@robertmuehsig
Copy link

Currently we are still using TFS 2015 Update 2:

image

But it seems I can't connect with the most recent VSTS Plugin:

image

Do I miss something or do we need at least Update 2.1?

@jeffyoung
Copy link
Contributor

Hi @robertmuehsig. Thanks for trying out the extension!

Can you tell me a bit more about your scenario? It appears you're attempting to connect to an on-premises server. Is your source code on the same server or elsewhere? If it's on the same server, is it Git or TFVC? The reason I ask is that the team.remoteUrl and team.teamProject values are used for when source code is not hosted on either Team Services or Team Foundation Server but your work items and builds actually are. If you're using a Git repository cloned off of either TFS or Team Services, you can simply open the repo folder (and you don't need these settings). For TFVC, if you already have a local workspace, you can just open that folder as well (and also don't need those settings).

That said, is your OneOffixx project within a project collection? I was just debugging a similar issue I ran into a bit ago and discovered that my workspace didn't actually have a project collection in the URL (and that can mess things up).

Finally, if you're up for it, could you enable logging just before you update that URL with the project collection so I can try and confirm my suspicions?

@robertmuehsig
Copy link
Author

Ah - everything (Source Code & Work Items etc.) are on the same On Premise TFS and we currently use TFVC.
I just followed the YouTube "Getting Started" Video and thought that these settings needs to be there.

My full scenario:
We want to create a new Angular 4 app and just save it in your TFVC repo. The "OneOffixx" project (with all branches etc.) is one of many projects in the TFS. I was looking for an "Add to Source Control" like the same thing from VS TFS Explorer, but it seems I need to setup the workspace and some inital stuff with VS and can later use VS Code (maybe this makes sense ;) ).

@jeffyoung
Copy link
Contributor

Right, you'll need to create the local workspace (the extension doesn't support server workspaces at this point; #176) and then open it with VS Code (with the Team Services extension installed). Give that a try.

@robertmuehsig
Copy link
Author

This is my setup now:

OnPremise TFS 2015 - now on Update 3.

image

In my VS Code settings.json I have the following:

{
    "workbench.colorTheme": "Visual Studio Dark",
    "window.zoomLevel": 1,
    "tfvc.location": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Professional\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\TF.exe"
}

I did the initial changeset within VS 2017 + Team Explorer and stored it like that:

image

Workspace - the whole "OneOffixx" project is mapped:
image

Problem: VS Code TFVC Plugin refused to do anything meaningful:

image

When I try "Team: signin" I get the same "No Team Services or Team Foundation Server repository configuration was found...."

What do I miss?

@robertmuehsig
Copy link
Author

robertmuehsig commented Apr 25, 2017

Follow up:

With these settings I can interact with the TFS work items stuff and it already queries the correct endpoint:

Settings:

    "tfvc.location": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Professional\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\TF.exe",
    "team.remoteUrl": "http://tfs.corp.sevitec.ch:8080/tfs/dev1",
    "team.teamProject": "OneOffixx",

image

But the TFVC version control is not detected and it doesn't track changes.

image

Team Extension Log 2017-04-25T12:41:23.065Z - info: [28468] *** FOLDER: d:\TFS\ONEOFFIXX\vNext\_WebApps\OneOffixx.Web.WebApp *** 2017-04-25T12:41:23.066Z - debug: [28468] Looking for an External Context at d:\TFS\ONEOFFIXX\vNext\_WebApps\OneOffixx.Web.WebApp 2017-04-25T12:41:23.067Z - debug: [28468] Found an External Context at d:\TFS\ONEOFFIXX\vNext\_WebApps\OneOffixx.Web.WebApp 2017-04-25T12:41:23.068Z - debug: [28468] Parsing values from repositoryInfo as string url 2017-04-25T12:41:23.069Z - debug: [28468] No account-specific token or global token found. 2017-04-25T12:41:23.091Z - debug: [28468] Started ApplicationInsights telemetry 2017-04-25T12:41:23.092Z - info: [28468] Getting repository information with repositoryInfoClient 2017-04-25T12:41:23.092Z - debug: [28468] RemoteUrl = http://tfs.corp.sevitec.ch:8080/tfs/dev1 2017-04-25T12:41:23.092Z - debug: [28468] Getting repository information for a TFVC repository at http://tfs.corp.sevitec.ch:8080/tfs/dev1 2017-04-25T12:41:23.092Z - debug: [28468] Parsing values from repositoryInfo as string url 2017-04-25T12:41:23.128Z - debug: [28468] Validated the TFS TFVC repository. Collection name: 'dev1', Url: 'http://tfs.corp.sevitec.ch:8080/tfs/' 2017-04-25T12:41:23.128Z - debug: [28468] Getting project collection... url: 'http://tfs.corp.sevitec.ch:8080/tfs/', and collection name: 'dev1' 2017-04-25T12:41:23.128Z - debug: [28468] Using SOAP to get the project collection information 2017-04-25T12:41:23.242Z - debug: [28468] Found a project collection for url: 'http://tfs.corp.sevitec.ch:8080/tfs/' and collection name: 'dev1'. 2017-04-25T12:41:23.243Z - debug: [28468] Getting team project... Url: 'http://tfs.corp.sevitec.ch:8080/tfs/', collection name: 'dev1', and project: 'OneOffixx' 2017-04-25T12:41:23.282Z - debug: [28468] Found a team project for url: 'http://tfs.corp.sevitec.ch:8080/tfs/', collection name: 'dev1', and project id: '35573abe-a51e-4244-85ad-8dcd592c7945' 2017-04-25T12:41:23.282Z - debug: [28468] Parsing values from repositoryInfo object as any 2017-04-25T12:41:23.282Z - debug: [28468] _collection: dev1 2017-04-25T12:41:23.282Z - debug: [28468] _collectionId: c8efd300-23c9-4238-bc3c-6968170c411f 2017-04-25T12:41:23.283Z - debug: [28468] _repositoryId: 00000000-0000-0000-0000-000000000000 2017-04-25T12:41:23.283Z - debug: [28468] _repositoryName: NoNameTfvcRepository 2017-04-25T12:41:23.283Z - debug: [28468] _teamProject: ONEOFFIXX 2017-04-25T12:41:23.283Z - debug: [28468] _isTeamFoundationServer: true 2017-04-25T12:41:23.284Z - info: [28468] Getting connectionData with accountClient 2017-04-25T12:41:23.284Z - debug: [28468] connectionUrl = http://tfs.corp.sevitec.ch:8080/tfs//dev1 2017-04-25T12:41:23.301Z - info: [28468] Retrieved connectionData with accountClient 2017-04-25T12:41:23.301Z - debug: [28468] Found pinned queries in user configuration settings. 2017-04-25T12:41:23.301Z - debug: [28468] No account-specific pinned query or global pinned query found. Using default. 2017-04-25T12:41:23.301Z - debug: id=3ce254b3-ae60-4014-8a23-8fd4162b2330, descriptor=System.Security.Principal.WindowsIdentity;S-1-5-21-2428866552-2013070483-421003753-2691, providerDisplayName=Robert Muehsig, isActive=true, members=[], memberOf=[], memberIds=[], masterId=3ce254b3-ae60-4014-8a23-8fd4162b2330, $type=System.String, $value=User, $type=System.String, $value=Senior Software Developer, $type=System.String, $value=CORP, $type=System.String, $value=muehsig, $type=System.String, $value=CN=Mühsig Robert,OU=Users,OU=Rennweg,DC=corp,DC=sevitec,DC=ch, $type=System.String, $value=robert.muehsig@oneoffixx.com, $type=System.String, $value=Generic, resourceVersion=1, metaTypeId=255, id=3ce254b3-ae60-4014-8a23-8fd4162b2330, descriptor=System.Security.Principal.WindowsIdentity;S-1-5-21-2428866552-2013070483-421003753-2691, providerDisplayName=Robert Muehsig, isActive=true, members=[], memberOf=[], memberIds=[], masterId=3ce254b3-ae60-4014-8a23-8fd4162b2330, $type=System.String, $value=User, $type=System.String, $value=Senior Software Developer, $type=System.String, $value=CORP, $type=System.String, $value=muehsig, $type=System.String, $value=CN=Mühsig Robert,OU=Users,OU=Rennweg,DC=corp,DC=sevitec,DC=ch, $type=System.String, $value=robert.muehsig@oneoffixx.com, $type=System.String, $value=Generic, resourceVersion=1, metaTypeId=255, instanceId=c8efd300-23c9-4238-bc3c-6968170c411f, clientCacheTimeToLive=86400, defaultAccessMappingMoniker=PublicAccessMapping, lastChangeId=4860005, lastChangeId64=4860005, webApplicationRelativeDirectory=dev1/ 2017-04-25T12:41:23.302Z - debug: [28468] Account: tfs.corp.sevitec.ch:8080 Team Project: ONEOFFIXX Collection: dev1 Repository: NoNameTfvcRepository UserCustomDisplayName: undefined UserProviderDisplayName: Robert Muehsig UserId: 3ce254b3-ae60-4014-8a23-8fd4162b2330 2017-04-25T12:41:23.302Z - debug: [28468] repositoryFolder: d:\TFS\ONEOFFIXX\vNext\_WebApps\OneOffixx.Web.WebApp 2017-04-25T12:41:23.302Z - debug: [28468] repositoryRemoteUrl: http://tfs.corp.sevitec.ch:8080/tfs/dev1 2017-04-25T12:41:23.303Z - debug: [28468] IsSsh: false 2017-04-25T12:41:23.303Z - debug: [28468] proxy: not enabled, team services: false 2017-04-25T12:41:27.301Z - info: [28468] Polling for latest current build status... 2017-04-25T12:41:27.302Z - info: [28468] Getting current build from badge... 2017-04-25T12:41:27.302Z - info: [28468] Polling for the pinned work itemquery 2017-04-25T12:41:27.302Z - info: [28468] Running pinned work item query to get count (ONEOFFIXX)... 2017-04-25T12:41:27.360Z - info: [28468] No builds were found for team ONEOFFIXX, repo id 00000000-0000-0000-0000-000000000000, + branch UNKNOWN 2017-04-25T12:42:00.147Z - info: [76764] *** FOLDER: d:\TFS\ONEOFFIXX\vNext\_WebApps\OneOffixx.Web.WebApp *** 2017-04-25T12:42:00.150Z - debug: [76764] Looking for an External Context at d:\TFS\ONEOFFIXX\vNext\_WebApps\OneOffixx.Web.WebApp 2017-04-25T12:42:00.151Z - debug: [76764] Found an External Context at d:\TFS\ONEOFFIXX\vNext\_WebApps\OneOffixx.Web.WebApp 2017-04-25T12:42:00.154Z - debug: [76764] Parsing values from repositoryInfo as string url 2017-04-25T12:42:00.155Z - debug: [76764] No account-specific token or global token found. 2017-04-25T12:42:00.267Z - debug: [76764] Started ApplicationInsights telemetry 2017-04-25T12:42:00.267Z - info: [76764] Getting repository information with repositoryInfoClient 2017-04-25T12:42:00.267Z - debug: [76764] RemoteUrl = http://tfs.corp.sevitec.ch:8080/tfs/dev1 2017-04-25T12:42:00.268Z - debug: [76764] Getting repository information for a TFVC repository at http://tfs.corp.sevitec.ch:8080/tfs/dev1 2017-04-25T12:42:00.268Z - debug: [76764] Parsing values from repositoryInfo as string url 2017-04-25T12:42:00.392Z - debug: [76764] Validated the TFS TFVC repository. Collection name: 'dev1', Url: 'http://tfs.corp.sevitec.ch:8080/tfs/' 2017-04-25T12:42:00.392Z - debug: [76764] Getting project collection... url: 'http://tfs.corp.sevitec.ch:8080/tfs/', and collection name: 'dev1' 2017-04-25T12:42:00.392Z - debug: [76764] Using SOAP to get the project collection information 2017-04-25T12:42:00.590Z - debug: [76764] Found a project collection for url: 'http://tfs.corp.sevitec.ch:8080/tfs/' and collection name: 'dev1'. 2017-04-25T12:42:00.590Z - debug: [76764] Getting team project... Url: 'http://tfs.corp.sevitec.ch:8080/tfs/', collection name: 'dev1', and project: 'OneOffixx' 2017-04-25T12:42:00.660Z - debug: [76764] Found a team project for url: 'http://tfs.corp.sevitec.ch:8080/tfs/', collection name: 'dev1', and project id: '35573abe-a51e-4244-85ad-8dcd592c7945' 2017-04-25T12:42:00.660Z - debug: [76764] Parsing values from repositoryInfo object as any 2017-04-25T12:42:00.661Z - debug: [76764] _collection: dev1 2017-04-25T12:42:00.661Z - debug: [76764] _collectionId: c8efd300-23c9-4238-bc3c-6968170c411f 2017-04-25T12:42:00.661Z - debug: [76764] _repositoryId: 00000000-0000-0000-0000-000000000000 2017-04-25T12:42:00.661Z - debug: [76764] _repositoryName: NoNameTfvcRepository 2017-04-25T12:42:00.661Z - debug: [76764] _teamProject: ONEOFFIXX 2017-04-25T12:42:00.661Z - debug: [76764] _isTeamFoundationServer: true 2017-04-25T12:42:00.661Z - info: [76764] Getting connectionData with accountClient 2017-04-25T12:42:00.661Z - debug: [76764] connectionUrl = http://tfs.corp.sevitec.ch:8080/tfs//dev1 2017-04-25T12:42:00.683Z - info: [76764] Retrieved connectionData with accountClient 2017-04-25T12:42:00.685Z - debug: [76764] Found pinned queries in user configuration settings. 2017-04-25T12:42:00.686Z - debug: [76764] No account-specific pinned query or global pinned query found. Using default. 2017-04-25T12:42:00.688Z - debug: id=3ce254b3-ae60-4014-8a23-8fd4162b2330, descriptor=System.Security.Principal.WindowsIdentity;S-1-5-21-2428866552-2013070483-421003753-2691, providerDisplayName=Robert Muehsig, isActive=true, members=[], memberOf=[], memberIds=[], masterId=3ce254b3-ae60-4014-8a23-8fd4162b2330, $type=System.String, $value=User, $type=System.String, $value=Senior Software Developer, $type=System.String, $value=CORP, $type=System.String, $value=muehsig, $type=System.String, $value=CN=Mühsig Robert,OU=Users,OU=Rennweg,DC=corp,DC=sevitec,DC=ch, $type=System.String, $value=robert.muehsig@oneoffixx.com, $type=System.String, $value=Generic, resourceVersion=1, metaTypeId=255, id=3ce254b3-ae60-4014-8a23-8fd4162b2330, descriptor=System.Security.Principal.WindowsIdentity;S-1-5-21-2428866552-2013070483-421003753-2691, providerDisplayName=Robert Muehsig, isActive=true, members=[], memberOf=[], memberIds=[], masterId=3ce254b3-ae60-4014-8a23-8fd4162b2330, $type=System.String, $value=User, $type=System.String, $value=Senior Software Developer, $type=System.String, $value=CORP, $type=System.String, $value=muehsig, $type=System.String, $value=CN=Mühsig Robert,OU=Users,OU=Rennweg,DC=corp,DC=sevitec,DC=ch, $type=System.String, $value=robert.muehsig@oneoffixx.com, $type=System.String, $value=Generic, resourceVersion=1, metaTypeId=255, instanceId=c8efd300-23c9-4238-bc3c-6968170c411f, clientCacheTimeToLive=86400, defaultAccessMappingMoniker=PublicAccessMapping, lastChangeId=4860005, lastChangeId64=4860005, webApplicationRelativeDirectory=dev1/ 2017-04-25T12:42:00.690Z - debug: [76764] Account: tfs.corp.sevitec.ch:8080 Team Project: ONEOFFIXX Collection: dev1 Repository: NoNameTfvcRepository UserCustomDisplayName: undefined UserProviderDisplayName: Robert Muehsig UserId: 3ce254b3-ae60-4014-8a23-8fd4162b2330 2017-04-25T12:42:00.691Z - debug: [76764] repositoryFolder: d:\TFS\ONEOFFIXX\vNext\_WebApps\OneOffixx.Web.WebApp 2017-04-25T12:42:00.691Z - debug: [76764] repositoryRemoteUrl: http://tfs.corp.sevitec.ch:8080/tfs/dev1 2017-04-25T12:42:00.691Z - debug: [76764] IsSsh: false 2017-04-25T12:42:00.691Z - debug: [76764] proxy: not enabled, team services: false 2017-04-25T12:42:04.686Z - info: [76764] Polling for latest current build status... 2017-04-25T12:42:04.687Z - info: [76764] Getting current build from badge... 2017-04-25T12:42:04.688Z - info: [76764] Polling for the pinned work itemquery 2017-04-25T12:42:04.689Z - info: [76764] Running pinned work item query to get count (ONEOFFIXX)... 2017-04-25T12:42:04.749Z - info: [76764] No builds were found for team ONEOFFIXX, repo id 00000000-0000-0000-0000-000000000000, + branch UNKNOWN 2017-04-25T12:44:41.691Z - info: [76764] Signin: Username and Password provided as authentication. 2017-04-25T12:44:41.766Z - debug: [76764] Polling interval value (minutes): 5 2017-04-25T12:44:41.767Z - info: [76764] *** FOLDER: d:\TFS\ONEOFFIXX\vNext\_WebApps\OneOffixx.Web.WebApp *** 2017-04-25T12:44:41.767Z - debug: [76764] Looking for an External Context at d:\TFS\ONEOFFIXX\vNext\_WebApps\OneOffixx.Web.WebApp 2017-04-25T12:44:41.767Z - debug: [76764] Found an External Context at d:\TFS\ONEOFFIXX\vNext\_WebApps\OneOffixx.Web.WebApp 2017-04-25T12:44:41.768Z - debug: [76764] Parsing values from repositoryInfo as string url 2017-04-25T12:44:41.769Z - debug: [76764] No account-specific token or global token found. 2017-04-25T12:44:41.797Z - debug: [76764] Started ApplicationInsights telemetry 2017-04-25T12:44:41.797Z - info: [76764] Getting repository information with repositoryInfoClient 2017-04-25T12:44:41.797Z - debug: [76764] RemoteUrl = http://tfs.corp.sevitec.ch:8080/tfs/dev1 2017-04-25T12:44:41.797Z - debug: [76764] Getting repository information for a TFVC repository at http://tfs.corp.sevitec.ch:8080/tfs/dev1 2017-04-25T12:44:41.798Z - debug: [76764] Parsing values from repositoryInfo as string url 2017-04-25T12:44:41.845Z - debug: [76764] Validated the TFS TFVC repository. Collection name: 'dev1', Url: 'http://tfs.corp.sevitec.ch:8080/tfs/' 2017-04-25T12:44:41.845Z - debug: [76764] Getting project collection... url: 'http://tfs.corp.sevitec.ch:8080/tfs/', and collection name: 'dev1' 2017-04-25T12:44:41.846Z - debug: [76764] Using SOAP to get the project collection information 2017-04-25T12:44:41.948Z - debug: [76764] Found a project collection for url: 'http://tfs.corp.sevitec.ch:8080/tfs/' and collection name: 'dev1'. 2017-04-25T12:44:41.948Z - debug: [76764] Getting team project... Url: 'http://tfs.corp.sevitec.ch:8080/tfs/', collection name: 'dev1', and project: 'OneOffixx' 2017-04-25T12:44:41.997Z - debug: [76764] Found a team project for url: 'http://tfs.corp.sevitec.ch:8080/tfs/', collection name: 'dev1', and project id: '35573abe-a51e-4244-85ad-8dcd592c7945' 2017-04-25T12:44:41.997Z - debug: [76764] Parsing values from repositoryInfo object as any 2017-04-25T12:44:41.997Z - debug: [76764] _collection: dev1 2017-04-25T12:44:41.997Z - debug: [76764] _collectionId: c8efd300-23c9-4238-bc3c-6968170c411f 2017-04-25T12:44:41.997Z - debug: [76764] _repositoryId: 00000000-0000-0000-0000-000000000000 2017-04-25T12:44:41.997Z - debug: [76764] _repositoryName: NoNameTfvcRepository 2017-04-25T12:44:41.998Z - debug: [76764] _teamProject: ONEOFFIXX 2017-04-25T12:44:41.998Z - debug: [76764] _isTeamFoundationServer: true 2017-04-25T12:44:41.998Z - info: [76764] Getting connectionData with accountClient 2017-04-25T12:44:41.998Z - debug: [76764] connectionUrl = http://tfs.corp.sevitec.ch:8080/tfs//dev1 2017-04-25T12:44:42.016Z - info: [76764] Retrieved connectionData with accountClient 2017-04-25T12:44:42.017Z - debug: [76764] Found pinned queries in user configuration settings. 2017-04-25T12:44:42.017Z - debug: [76764] No account-specific pinned query or global pinned query found. Using default. 2017-04-25T12:44:42.017Z - debug: id=3ce254b3-ae60-4014-8a23-8fd4162b2330, descriptor=System.Security.Principal.WindowsIdentity;S-1-5-21-2428866552-2013070483-421003753-2691, providerDisplayName=Robert Muehsig, isActive=true, members=[], memberOf=[], memberIds=[], masterId=3ce254b3-ae60-4014-8a23-8fd4162b2330, $type=System.String, $value=User, $type=System.String, $value=Senior Software Developer, $type=System.String, $value=CORP, $type=System.String, $value=muehsig, $type=System.String, $value=CN=Mühsig Robert,OU=Users,OU=Rennweg,DC=corp,DC=sevitec,DC=ch, $type=System.String, $value=robert.muehsig@oneoffixx.com, $type=System.String, $value=Generic, resourceVersion=1, metaTypeId=255, id=3ce254b3-ae60-4014-8a23-8fd4162b2330, descriptor=System.Security.Principal.WindowsIdentity;S-1-5-21-2428866552-2013070483-421003753-2691, providerDisplayName=Robert Muehsig, isActive=true, members=[], memberOf=[], memberIds=[], masterId=3ce254b3-ae60-4014-8a23-8fd4162b2330, $type=System.String, $value=User, $type=System.String, $value=Senior Software Developer, $type=System.String, $value=CORP, $type=System.String, $value=muehsig, $type=System.String, $value=CN=Mühsig Robert,OU=Users,OU=Rennweg,DC=corp,DC=sevitec,DC=ch, $type=System.String, $value=robert.muehsig@oneoffixx.com, $type=System.String, $value=Generic, resourceVersion=1, metaTypeId=255, instanceId=c8efd300-23c9-4238-bc3c-6968170c411f, clientCacheTimeToLive=86400, defaultAccessMappingMoniker=PublicAccessMapping, lastChangeId=4860005, lastChangeId64=4860005, webApplicationRelativeDirectory=dev1/ 2017-04-25T12:44:42.018Z - debug: [76764] Account: tfs.corp.sevitec.ch:8080 Team Project: ONEOFFIXX Collection: dev1 Repository: NoNameTfvcRepository UserCustomDisplayName: undefined UserProviderDisplayName: Robert Muehsig UserId: 3ce254b3-ae60-4014-8a23-8fd4162b2330 2017-04-25T12:44:42.018Z - debug: [76764] repositoryFolder: d:\TFS\ONEOFFIXX\vNext\_WebApps\OneOffixx.Web.WebApp 2017-04-25T12:44:42.018Z - debug: [76764] repositoryRemoteUrl: http://tfs.corp.sevitec.ch:8080/tfs/dev1 2017-04-25T12:44:42.018Z - debug: [76764] IsSsh: false 2017-04-25T12:44:42.018Z - debug: [76764] proxy: not enabled, team services: false 2017-04-25T12:44:46.017Z - info: [76764] Polling for latest current build status... 2017-04-25T12:44:46.018Z - info: [76764] Getting current build from badge... 2017-04-25T12:44:46.019Z - info: [76764] Polling for the pinned work itemquery 2017-04-25T12:44:46.019Z - info: [76764] Running pinned work item query to get count (ONEOFFIXX)... 2017-04-25T12:44:46.076Z - info: [76764] No builds were found for team ONEOFFIXX, repo id 00000000-0000-0000-0000-000000000000, + branch UNKNOWN

@jeffyoung
Copy link
Contributor

Thanks for the information @robertmuehsig. I didn't see anything obvious other than there isn't any TFVC SCM-related logging in that file.

Could you try the attached VSIX and provide me with the log file (just drag-and-drop the log file into your message instead of copying and pasting)? I added a bit more logging to try and pinpoint what's going sideways. But before trying this VSIX, please delete the old log file so I get just the data from this particular run.

Also, before you give this VSIX a try, even though you can connect to the TFS server for build and work item information, can you remove both the team.remoteUrl and team.teamProject entries in your VS Code settings? You shouldn't need those to connect to the server and I'd like to eliminate any side-effect from those settings.

So in order to install this private drop, you need to uninstall the current extension and then side-load this VSIX. After downloading the ZIP file, you'll need to rename it by dropping the .ZIP extension. Then, after selecting the Extension viewlet, click the ... menu, choose Install from VSIX... and then select that VSIX file.

team-0.117.0.vsix.zip

In my local testing, it took over a minute to validate the TFVC collection URL. But, in your previous logs, I don't see any time delay.

I certainly appreciate your patience and tenacity! 😄

@robertmuehsig
Copy link
Author

Without "team.remoteUrl" & "team.teamProject":

team-extension.txt

When I try to do a "Team: Signin" (because there is this "TFVC errors: TF30063: You are not authorized to access tfs.corp.sevitec.ch\dev1") I get "No Team Services or Team Foundation Server repository..."

Wild guess: It seems the extension is trying to access "tfs.corp.sevitec.ch\dev1", but the correct path would be "http://tfs.corp.sevitec.ch:8080/tfs/dev1" - at least this is the url that is used by the Team Explorer in VS 2017:

image

The weird thing is, that even the TFS Team Explorer can show the "wrong" URL:

image

Hope this helps!

@jeffyoung
Copy link
Contributor

Thanks Robert. This is certainly puzzling! 😕 It's really odd that VS Team Explorer would show it "wrong". So we're going to have to dig in and find out what's up.

For starters, all the VS Code extension does is call tf workfold and attempts to parse the output. For example, we expect the output to look something like this:

==================================================
Workspace: JEYOU-DEV00
Collection: http://mgtfs2015:8080/tfs/defaultcollection/
$/TFVC: C:\repos\mgtfs2015\TFVC

If that fails, we don't think we have a TFVC repository and that's why you see the behavior you do (e.g., the TFVC SCM Provider doesn't initialize).

What output do you get if you drop to a command line and run tf.exe workfold d:\TFS\ONEOFFIXX\vNext\_WebApps\OneOffixx.Web.WebApp?

@robertmuehsig
Copy link
Author

D:\TFS\ONEOFFIXX\vNext\_WebApps\OneOffixx.Web.WebApp>"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\TF.exe" workfold
===============================================================================
Workspace : PC-152 (Robert Muehsig)
Collection: http://tfs.corp.sevitec.ch:8080/tfs/dev1
 $/ONEOFFIXX: D:\TFS\ONEOFFIXX
 $/ONEOFFIXX Delivery: D:\TFS\ONEOFFIXX-Delivery\ONEOFFIXX Delivery
 $/xxx/xxx: D:\TFS\xxx
 $/xxx1/xxx1: D:\TFS\xxx1

(the xxx projects are custom projects)

Be aware that TF.exe itself is not on PATH if this is needed, e.g. this fails:

D:\TFS\ONEOFFIXX\vNext\_WebApps\OneOffixx.Web.WebApp>tf.exe
'tf.exe' is not recognized as an internal or external command,
operable program or batch file.

@jeffyoung
Copy link
Contributor

OK, thanks Robert. I'm now thinking that your workspace is actually located on the server like #176. The error that we see in the log in that issue, TF30063, is the same here. (The extension currently only supports local workspaces and I'm using that issue to track the work item.)

Since you can run tf workfold from D:\TFS\ONEOFFIXX\vNext\_WebApps\OneOffixx.Web.WebApp successfully, can you also run tf workspace from the same location? When you do, a dialog like the one below will show up and I'd like to know the value of Location.

image

@robertmuehsig
Copy link
Author

Ahhh... I didn't know the "local" workspace concept until now. When I read your requirements "only local workspaces are supported" I though "Yeah... I think it is a local workspace". Maybe put a screenshot like the above one in the readme or in the FAQs 😄

I created a local workspace and everything is fine now 👍

Thanks and sorry for not following the "RTFM"-rule !

@jeffyoung
Copy link
Contributor

No problem Robert. Thanks for helping me figure this out. I've taken an item to try and make it clearer about the local versus server workspace requirement.

(Duplicate of #176)

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

No branches or pull requests

2 participants