question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hangs up on Git Bash (Windows)

See original GitHub issue

First of all let me thankyou for wonderful project! It works perfectly on any platform I use.

Anyway on Windows (installed via pip), when it runs on Git Bash doesn’t produce any output and blocks the shell. On PowerShell works perfectly.

System is Windows 10, GitBash is the latest at the moment of writing.

Have a nice day

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jakubroztocilcommented, Apr 22, 2020

It turns out it’s a known issue in Git for Windows v2.26.2:

This issue is listed specifically in the Known Issues in our Release Notes:

  • Some console programs, most notably non-MSYS2 Python, PHP, Node and OpenSSL, interact correctly with MinTTY only when called through winpty (e.g. the Python console needs to be started as winpty python instead of just python).

The installer even suggests (on the page titled “Configuring the terminal emulator to use with Git Bash”) to

Use Windows’ default console window […] which works well with Win32 console programs such as interactive Python or node.js […]

0reactions
yanakeycommented, Feb 20, 2022

Upgraded python and httpie to the latest versions today and got this issue. I’ve just added alias http='winpty http' to my ~/.bashrc and it works again. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git Bash as terminal freezes constantly · Issue #144016 - GitHub
Set Git Bash as default terminal · Open a new terminal · Type something to confirm its working · Click the + icon...
Read more >
Git Bash hangs on CTRL + I - windows - Stack Overflow
When I am running Git Bash, I occasionally accidentally press CTRL + I and this freezes up the terminal for quite a long...
Read more >
git freezes on most commands - Google Groups
Even just running git --version causes the program to freeze. The only way to unfreeze the windows terminal is by killing the git...
Read more >
Stuck in Git-Bash command line? - Medium
Get back to normal console [:x] : If everything is complete and you want to get back to the git-bash terminal, simply type...
Read more >
Gitbash hangs with `git push -u` and https credentials
To summarize, when you write git push -u origin main and press ENTER nothing happen. It freezes. What I did was: Uninstall GitBash...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found