github / VisualStudio

GitHub Extension for Visual Studio
https://visualstudio.github.com
MIT License
2.37k stars 1.21k forks source link

No such file or directory could not read Password for '' #1862

Open Kunze opened 6 years ago

Kunze commented 6 years ago

When I try to use any git function in vs I receive this error:

cannot spawn /c/program files (x86)/microsoft visual studio/2017/community/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/libexec/git-core/git-askpass.exe: No such file or directory
could not read Password for 'https://xxxx@bitbucket.org': terminal prompts disabled

It starts to happen every time I update VS (it happened for the last 3 updates).

meaghanlewis commented 6 years ago

Hi @Kunze I'm not exactly sure why you're getting that error, but this Stack Overflow post has some suggestions which include updating Git for Windows, and removing your git credentials in the Windows Credential Manager.

Check out this post: https://stackoverflow.com/questions/51728362/cant-pull-fetch-using-vs-team-explorerbitbucket-git/51729662#51729662

Let me know if the solution mentioned works or not.

jvillaro commented 6 years ago

This has happened to me as well the last 2 VS updates (I'm using bitbucket)

funwaywang commented 6 years ago

I have this problem too... git by bitbucket.org

Rory-Walsh commented 6 years ago

Same problem, also using BitBucket. This problem is now fixed for me. I'm using the released version of Visual Studio 15.8.2

BrilliantTechie commented 6 years ago

Problem still exists in 15.8.4

savagepanda commented 5 years ago

upgrading to 15.9.0 fixed the problem for me.

Box-Of-Hats commented 5 years ago

Currently having this issue with Visual Studio Version 15.9.3

grokys commented 5 years ago

This looks to be a problem with Visual Studio itself rather than with the GitHub for Visual Studio extension. @kaylangan @clboles @jeremyepling any ideas?

Rostech commented 5 years ago

I had the same issue. Updating Visual Studio to v15.9.4 fixed it for me.

yosigolan commented 4 years ago

In my case the issue was a weak password... Apparently, login from visual studio with weak password is not allowed anymore. I found it out by installing GitHub Extension for Visual Studio, then, i received the correct error message. Once i have updated the password everything works fine.

pat12345 commented 4 years ago

upgrading to 15.9.0 fixed the problem for me. and git version 2.25.0.windows.1

rob88 commented 4 years ago

I have the same problem , I have updated visual studio and git etc.. I do still get this error . I think the problem is the .gpgun , does anyone knows how to change the directory in gpg ?

hyungjunk commented 3 years ago

This happened to me using VS Code, and solved it by updating the VS Code to the latest version.