jacogr / atom-git-control

Not maintained :(
MIT License
227 stars 70 forks source link

Error: No Such Device Or Address #111

Open iFaxity opened 9 years ago

iFaxity commented 9 years ago

Hi i'm running Atom on Windows 10 with some packages including "atom-git-control" but cant seem to get anything to work as the console throws the error:

bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'https//github.com': No error 'git fetch --prune' exited with error code 128

I don't know why it tries to connect with bash with a linux folde path (/dev/tty). Does this package work well with Windows 10 or is this Mac & Linux only?

MarcelMue commented 9 years ago

This package uses the npm package git-promise, which uses shelljs. It should work on your windows machine and works fine on windows 7. fatal: could not read Username for 'https//github.com': No error is thrown most likely because you don't have a username / password for github in your git keystore.

Xarkam commented 8 years ago

I Have the same case but, I have git-promise installed on my Windows 10

bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Password for 'http://xarkam@*******.osames.org': Invalid argument
'git fetch --prune' exited with error code 128

I did not want to leave the password in a keystore

iFaxity commented 8 years ago

It seems like git-promise is not working well with windows 10 for some reason. If someone could confirm this it would help. The package works well on my MacBook Pro. It probably has to do with the bash: /dev/tty: No such device or address as windows does not have Bash it seems a bit odd.

It's not much of a problem tho. I just use the GitHub Desktop application for syncing my stuff anyways. I would suggest others do too. At least until it's fixed.

WolfieWerewolf commented 8 years ago

Guys I just had this issue setting up a local gitlab instance and was able to resolve it by storing my credentials in the git store according to this article. https://git-scm.com/docs/git-credential-store It seems that the git-control doesn't provide a means for the "prompt" for credentials approach and expects to be able to find them in the store. Hope this helps.