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

Ctrl+C not working in "Open in Command Prompt" window #20798

Closed
letmaik opened this issue Feb 17, 2017 · 9 comments
Closed

Ctrl+C not working in "Open in Command Prompt" window #20798

letmaik opened this issue Feb 17, 2017 · 9 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@letmaik
Copy link
Member

letmaik commented Feb 17, 2017

  • VSCode Version: 1.9.1
  • OS Version: Windows 10

Steps to Reproduce:

  1. Right-click on a file and click "Open in Command Prompt"
  2. Run some longer-running command and try to Ctrl+C to exit. No reaction.

When I do the same with a cmd window opened from outside VS Code then everything works as expected.

Related to #9347?

@joaomoreno joaomoreno removed their assignment Feb 21, 2017
@Tyriar
Copy link
Member

Tyriar commented Feb 21, 2017

To clarify, you're launching an external cmd.exe terminal and ctrl+c isn't working?

@Tyriar Tyriar added the info-needed Issue requires more information from poster label Feb 21, 2017
@letmaik
Copy link
Member Author

letmaik commented Feb 21, 2017

Exactly

@Tyriar
Copy link
Member

Tyriar commented Feb 21, 2017

Strange, I can't repro on Windows 10. Is there anything special about your setup? Are you on Windows Insiders or do you have vscode settings that might affect this?

@letmaik
Copy link
Member Author

letmaik commented Feb 21, 2017 via email

@letmaik
Copy link
Member Author

letmaik commented Feb 23, 2017

I just tested it on my other machine and can reproduce it. I don't have any relevant settings in vs code. I'm on the Anniversary Update version of Win 10.

Another difference is that the vscode launched prompt is 32 bits, which for example means I can't run "bash" for some reason ( "'bash' is not recognized as an internal or external command, operable program or batch file.") When I set "terminal.external.windowsExec": "C:\\Windows\\sysnative\\cmd.exe" then bash works.

Another fact: When I use the integrated terminal in vs code (the powershell one) then I can ctrl+c without problems.

I tried changing "terminal.external.windowsExec": "%COMSPEC%" to "terminal.external.windowsExec": "C:\\Windows\\sysnative\\cmd.exe" to get a 64 bit prompt but same problem with ctrl+c. Equally when changing to "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe".

EDIT: Still weird that it doesn't happen on my laptop.

@drumttocs8
Copy link

Having the same problem. Only seems to be an issue when using "Open in Command Prompt" from VSCode- and only sporadically. Sometimes Ctrl-C kills the process, sometimes it doesn't.

In my case it's firebase serve that will still run even after Ctrl-C. But sometimes Ctrl-C does kill it as it should.

@Tyriar
Copy link
Member

Tyriar commented Apr 21, 2017

Cannot repro on Windows 10, if you have a ny more details to help reproduce please share. Please make sure you're on the latest version of Windows 10.

@Tyriar Tyriar closed this as completed Apr 21, 2017
@The-Smallest
Copy link
Contributor

I have same problem only if I open VSCode from console using code . command.
Pressing Ctrl+Shift+C opens command prompt that doesn't react to Ctrl+C.
Hope this helps.

@Tyriar
Copy link
Member

Tyriar commented May 18, 2017

Duplicate #25195

@Tyriar Tyriar added *duplicate Issue identified as a duplicate of another issue(s) and removed info-needed Issue requires more information from poster labels May 18, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

5 participants