-
Notifications
You must be signed in to change notification settings - Fork 250
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
Ctrl-C doesn't terminate process or clear the line #7
Comments
Also having an issue with Ctrl-C where the current process is not halted, instead the terminal is closed/crashes and all running processes exit in unison.
|
@Syllinger If you see that again can you go to Hep > Toggle Developer Tools, open the console and grab a screenshot and/or paste the error? |
Sending |
Observed similar behavior running live-server. Also noticed that sometimes CTRL-C works but only after a lengthy timeout. |
As mentioned in the VSCode issue already: This happens to everybody in our company as well. However it also happens to outside VSCode, I have to add. We use ConEmu, so maybe the issue exists in general with the combination of Git Bash, npm/node and non-default console emulators? This makes me wonder who is really at fault here, it could be very well the MSYS bash or node for Windows... |
In fact it sounds like Maximus5/ConEmu#402 and git-for-windows/git#227 |
Any updates on this issue guys? I am currently running a continuous Casper script in my bash shell on Windows and I cannot stop the execution other than after finishing the promise chain execution. |
Hey @vladbalanescu - although not perfect within VSCode, I did find that upgrading to latest version of Node allowed me to terminate most processes 👍 |
Hey @IanOvenden which version of node are you using? I am currently on 7.10 and whenever I am running a casperjs script I cannot stop it unless it finished execution and the promise chain finished returning |
@vladbalanescu - I'm currently running on version 6.11.1, which is the latest stable release. At the time I was having issues, I was on 4.x.x and upgraded to an early version of 6 - I can't remember exactly which versions I moved from. |
Getting the same thing guys with a node or nodemon process. Dies and leaves the process running. I'm running Node 8.2.1 so there is no fix with a node upgrade. This is a Bash issue with Windows 10 only. I'm going to have to use a different shell now as I can't keep hunting down the node process to kill it. |
I think I have the same issue in tmux terminal inside VSCode on MacOS. I have the setup that was described by João Moreno (@joaomoreno) in his blog post https://medium.com/@joaomoreno/persistent-terminal-sessions-in-vs-code-8fc469ed6b41 However, it seems to me that Control-C, does not work as good as it used to. It is particularly noticeable when I run
Does this issue occur when all extensions are disabled?: Yes |
@Mellbourn that's definitely not this issue as this is Windows only, we can follow up in a VS Code issue if you want to create one https://github.com/Microsoft/vscode |
@Tyriar Right. I've reported the problem here now: microsoft/vscode#46731 |
Hi all, If this is only an issue on Windows platforms, as @Tyriar states, then I think it is actually under VS Code and in the Bash shell included in GIT for Windows. It's discussed in issue 1491. A Linux engineer that I worked with helped this poor Windows engineer to work around it with the magical phrase, "stty echo", to turn the keyboard echo back on. Cheers, |
I had the same issue. When I use e.g. git log command and press ctrl+c the console is stuck. I could type, but no command are typing. However, after press enter the command is running.But I got solution ,after git log , press wq to exit from the log and now my console cursor is visible and and command is also visible now. |
Hey @Abdurraheem I believe that’s actually a git bug, try killing all processes named less after you get out of the git log. |
So it this ever gonna get fixed? Or Im doomed to use taskkill /im node.exe /f forever? |
@haxor211 I'm hoping the fix for microsoft/vscode#45693 will do the trick, I'll be working on that probably in the next few months. |
I have same problem with git bash, but after press ctrl+c, if I wait like 5 minutes it will stop the "npm start" process for me. |
I find what was my problem. |
False alarm, it doesn´t make it more responsive. |
@Abdurraheem @SharakPL @sashberd
I was having the same problem specifically with *** answer found here *** |
CTRL+ALT+M |
I am experiencing the same problem, when I press CTRL+C, the editor unexpectedly quits, appears 3221225786, my solution is to upgrade the git tool, the following is my git version git --version
// git version 2.23.0.windows.1 The issue has been resolved after the upgrade |
If you start another bash shell inside the bash started by VSCode then I found that apps you start in the inner shell DO respond to Ctrl-C. |
If you're still experiencing this, run |
I have this issue with 2.25.1 (just updated from 2.25.0) to check if it was already fixed but no. Update: just pressing Q does the trick, this was always possible? I didn't know |
@FiruzzZ fyi in bash, git log/diff aren't meant to exit with ctrl+C,. |
@setebe I think much better solution is to simply remember to use I'm using Git for Windows 2.25.1.windows.1 (64bit) |
@SharakPL I've downgraded to version 2.8.1 and ctrl+c starts to work. |
ctrl+c is not meant to work in git log/diff, downgrading is not recommended as you'll probably hit other bugs that have been fixed in it. Anyway this issue is long fixed with the move to conpty so this discussion is off topic. |
From microsoft/vscode#15249
The text was updated successfully, but these errors were encountered: