Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git Bash as terminal freezes constantly #144016

Closed
danielannan17 opened this issue Feb 26, 2022 · 8 comments
Closed

Git Bash as terminal freezes constantly #144016

danielannan17 opened this issue Feb 26, 2022 · 8 comments
Assignees
Labels
terminal-conpty Integrated terminal issues related to the ConPTY backend

Comments

@danielannan17
Copy link

Issue Type: Bug

When I'm using GitBash it randomly freezes.

Steps to reproduce consistently (Others other ways too).

  1. Set Git Bash as default terminal
  2. Open a new terminal
  3. Type something to confirm its working
  4. Click the + icon to add a new terminal
  5. Type something in that new terminal
  6. Click bin icon for the new terminal to delete it
  7. Can no longer type in the first terminal

Extra info - I've installed oh my zsh in my git bash following this guide but this bug only affects vscode, doesnt affect the Git Bash or the Windows Terminal App
https://www.youtube.com/watch?v=SE1UtrtH9mo

VS Code version: Code 1.64.2 (f80445a, 2022-02-09T22:02:28.252Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No

@meganrogge
Copy link
Contributor

meganrogge commented Feb 28, 2022

When this happens, can you toggle the shared process and see if there's a log stating the pty host has been disconnected?

@meganrogge meganrogge added the info-needed Issue requires more information from poster label Feb 28, 2022
@danielannan17
Copy link
Author

danielannan17 commented Mar 1, 2022

There's no change stating that and there's also no change in the process explorer

@gwte
Copy link

gwte commented May 6, 2022

I have the exact same issue. Not only does the previous terminal usually stops working after opening a new one, current terminal also constantly freezes, requiring recreation of it and rendering the whole feature basically unusable.

Running:
Windows 10 Enterprise version 21H2 OS build 19044.1645
Git: Git-2.36.0-64-bit
VSCode: 1.67
Shell: zsh 5.8 with oh-my-zsh (master (0f2715b))

Worth noting I have the same issue in latest InteliJ IDEA - but not in Git Bash itself.

Is there anything I can provide to help resolve this, happy to!

@Anduh
Copy link

Anduh commented May 6, 2022

Interesting, I have essentially the same setup as @gwte and experienced Git Bash freezing in both VSCode & with Windows Terminal.

Happened just as I was updating my git bash to use oh-my-zsh following these instructions, but unsure if the freezing was started just before or after I made the switch to zsh.

The common thread seems to be Git Bash(Windows) & Zsh, and not necessarily VS Code.

@meganrogge
Copy link
Contributor

@Anduh thanks for the investigation.

I have essentially the same setup as @gwte and experienced Git Bash freezing in both VSCode & with Windows Terminal.

That suggests it's an issue with conpty, so closing this as we cannot control that. When it's fixed in conpty, it will be fixed in VSCode.

@meganrogge meganrogge added terminal-conpty Integrated terminal issues related to the ConPTY backend and removed info-needed Issue requires more information from poster labels May 6, 2022
@gwte
Copy link

gwte commented May 9, 2022

I have opted out of conpty with:

Terminal › Integrated: Windows Enable Conpty
Whether to use ConPTY for Windows terminal process communication (requires Windows 10 build number 18309+). Winpty will be used if this is false.

And can still reproduce the issue.

@gwte
Copy link

gwte commented May 24, 2022

@Anduh thanks for the investigation.

I have essentially the same setup as @gwte and experienced Git Bash freezing in both VSCode & with Windows Terminal.

That suggests it's an issue with conpty, so closing this as we cannot control that. When it's fixed in conpty, it will be fixed in VSCode.

@meganrogge would it be possible to think about a workaround?
If microsoft/terminal#1810 is the cause, there has been no progress there for over a year...

This is a really annoying issue, that hampers VS Code usage on what I believe is quite common setup for developers on Windows.

@Anduh
Copy link

Anduh commented May 25, 2022

Yeah, a workaround would be great, the "opt out of conpty" didn't work for me either.

Considering trying out WSL as a workaround.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
terminal-conpty Integrated terminal issues related to the ConPTY backend
Projects
None yet
Development

No branches or pull requests

4 participants