-
Notifications
You must be signed in to change notification settings - Fork 447
Error: command 'team.signin' not found [mapped drive] #245
Comments
Hi @BrianFarnhill. Thanks for trying out the extension. I've tried to catch all of the issues where commands just fail in this manner but must have missed (at least) one scenario. This isn't supposed to happen. Can you tell me more about your situation?
We've had #160 but didn't actually get to the root cause of the problem. |
Thanks for the response @jeffyoung some responses to your questions:
I'll enable the debug logging now and see what that turns up, I'll post here with the details |
I've turned on the debugging and I can see the team-extension.log file gets created but nothing appears to be written to it when I try to sign in or perform other actions (all the other actions also trigger the "command not found" error). Now it's also worth noting that the environment I'm seeing this in is reasonably tightly locked down as well, lots of outbound firewall rules to prevent traffic kicking around and limited permissions to things on the local system. I'm not sure if that should make a difference but I felt it worth calling out just in case there are other things I should be checking. I did test things by disabling the firewall and that didn't resolve the issue, and I've also run things up as a local admin and still get the same result. |
Hi @BrianFarnhill. It's good to know about the limited permissions on the local system. That makes me think of a few things. A few follow up questions:
|
@jeffyoung Thanks for the follow, in respose:
So based on what you're saying I feel like what youa re saying about it knowing the commands from package.json but not being able to find the code to call behind the methods behind it. Is there something I can test to check these in more details? |
Hi @BrianFarnhill. Do other folks in your organization have the extension working properly? Using TFVC? If so, are there any known differences between the two set ups? Different OS? I can say that I haven't tested with Windows 7 although I'll see if I can download an image and try it out. I'm quite surprised that the log file never gets written to since there's code to do just that almost immediately after creating the file. While I'm setting up a Win7 environment, you may want to try running procmon.exe (at https://live.sysinternals.com/), filtering on the vscode process and a file path of team-extension.log to see if there are issues accessing it. That is, if the restrictions you're under allow you to do so. Finally, have a look at the "C:\Users\username\.vscode\extensions" folder on your computer (this is where VS Code installs extensions). Verify that the folder for the extension looks something like this (it'll help rule out some sort of installation issue). I don't expect this to be an issue but want to be sure. |
OK. So I stood up a VM with Windows 7 SP1, downloaded and installed .NET 4.6.2, and installed VS Team Explorer 2017. I went ahead and installed VS Code and the extension. I also got the Git tools for Windows and cloned a repo from Team Services. When I opened the Git repo folder, everything showed up as expected. I was first prompted for credentials (the PAT) and after giving a valid one, the status bar showed up with the proper data. I then created a local TFVC workspace (from a local TFS server), set up tfvc.location and opened that folder. I got prompted for my domain credentials, entered them and the status bar showed up with the proper data. I'll await your response to my last one and any additional information you may have. If you happen to have a Git repository (TFS or Team Services), it would also be interesting to know if the extension works for that. It'll help me determine if it's the extension itself or something TFVC-specific. |
@jeffyoung No worries - I'm away from the customer site where I was having this issue for a couple of days but I'll get back there as soon as I can and work through this to do list for you. |
OK so I've gone and opened a git repo and tried the sign-in thing, and I still get the same error but I do see some detail hitting the log file for the git-repo. it all looks pretty standard save for one error that occurs in there a few times saying "spawn UNKNOWN" I've verified that the directory for the extension exists there as well with all the right files so the installation appears to have gone fine. I busted out procmon and figured out there was an access denied thing happening with the log file for that workspace (it was saved to a location that backed out to a network location behind the scenes). I swapped it out for something hitting the local disk to resolve that and I started seeing some things light up in the log file for that workspace now. I've done some find/replace work to remove customer specific data from it, but here is the output I see:
Now the only other thing worth knowing there is that you can see the repository is showing up as Z:\ in this example. This is because the customer actually doesn't allow direct access to the C:\ in this case (but it's really only blocked through windows explorer, you can bust open powershell or a cmd.exe prompt and browse files and directories there). The Z:\ in this example is nothing more than a mapped network drive to \localhost\C$\ to get around that specific limitation. It's worth noting that I can still run programs from the C:\ though (I called tf.exe from a command prompt just fine to create the workspace, and vscode runs from the C:\ just fine as well - its just an obscurity thing). Let me know how you want me to progress the troubleshooting on this one next. Also happy for you to look me up on the internal GAL and ping me on skype or email if you wanna chat further. |
Thanks @BrianFarnhill. I took a look at the logs and think I know what's going sideways. On Windows, when we go to retrieve credentials, we use a file named 'creds.exe' to interact with the credential store. In that code, we aren't resolving any symlinks (we just do a LMK the results (so I can determine if we need to do some more investigation). I'm hopeful this will resolve it. 😄 |
Thanks @jeffyoung I'll let you know. I'm back out at that customer at the end of this month, so it'll be a couple of weeks before I get a chance to get back to you, but I'll definitely get it verified for you. |
Great! Thanks @BrianFarnhill |
OK so I've done some kicking around and it appears that when I'm trying to run commands from other extensions that I'm getting this same error as well (I had assumed that since I got my proper formatting and some of the functionality of the PowerShell extension that it was fine, but when I bring up the command window and type something there I get the same issue). So based on that I've come to the conclusion that the issue I have here is nothing related to you guys or your extension, but something to do with this environment for my customer and it impacting on all extensions. So I'll keep chasing that one and see where this takes me. I appreciate the effort in helping me get this far with it though @jeffyoung you've been great. |
I have just installed the extension at v1.118.2 with VS Code v1.12.2. I set the tfvc location in settings.json as per the instructions, but when I run "team signin" I get the following error:
Any ideas on what I need to check to get this working?
The text was updated successfully, but these errors were encountered: