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

The terminal process command 'C:\WINDOWS\System32\cmd.exe' failed to launch (exit code: 2) #62953

Closed
Seng-Jik opened this issue Nov 12, 2018 · 11 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) info-needed Issue requires more information from poster terminal Integrated terminal issues

Comments

@Seng-Jik
Copy link

  • VSCode Version:
    Version: 1.28.2 (system setup)
    Commit: 7f3ce96
    Date: 2018-10-17T00:23:51.859Z
    Electron: 2.0.9
    Chrome: 61.0.3163.100
    Node.js: 8.9.3
    V8: 6.1.534.41
    Architecture: x64

  • OS Version:10.0.17134.345

Steps to Reproduce:

  1. Open VSCode
  2. Open a folder
  3. Ctrl + Shift + `
  4. Error Message:The terminal process command 'C:\WINDOWS\System32\cmd.exe' failed to launch (exit code: 2)

Does this issue occur when all extensions are disabled?: Yes

@vscodebot
Copy link

vscodebot bot commented Nov 12, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@vscodebot vscodebot bot added the terminal Integrated terminal issues label Nov 12, 2018
@Tyriar
Copy link
Member

Tyriar commented Nov 30, 2018

Are you on a locked down machine? You should also try the user installer instead of the system installer https://code.visualstudio.com/Download

@Tyriar Tyriar added the info-needed Issue requires more information from poster label Nov 30, 2018
@Seng-Jik
Copy link
Author

Seng-Jik commented Dec 1, 2018

Are you on a locked down machine? You should also try the user installer instead of the system installer https://code.visualstudio.com/Download

I has installed VSCode with user installer,but terminal not works too.

Message:
The terminal process command 'C:\Windows\System32\cmd.exe' failed to launch (exit code: 2)

@Tyriar
Copy link
Member

Tyriar commented Dec 3, 2018

is this a personal machine or managed by your organization?

@Seng-Jik
Copy link
Author

Seng-Jik commented Dec 4, 2018

is this a personal machine or managed by your organization?

Yes,it is my personal machine.

@Tyriar
Copy link
Member

Tyriar commented Dec 4, 2018

Does it work when you switch to powershell? https://code.visualstudio.com/docs/editor/integrated-terminal#_windows

@Seng-Jik
Copy link
Author

Seng-Jik commented Dec 5, 2018

Does it work when you switch to powershell? https://code.visualstudio.com/docs/editor/integrated-terminal#_windows

The terminal process command 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' failed to launch (exit code: 2)

@Tyriar
Copy link
Member

Tyriar commented Dec 6, 2018

I'm a bit stumped on this one, hopefully it will be fixed by changing the way we create the process which will likely land in 1.31 #45693

@Tyriar Tyriar closed this as completed Dec 6, 2018
@Tyriar Tyriar added the *duplicate Issue identified as a duplicate of another issue(s) label Dec 6, 2018
@Seng-Jik
Copy link
Author

Thanks.

@faridrafati
Copy link

Thanks.

Just remove deleted files from your work space in vs code it works for me

@c10udg0d
Copy link

c10udg0d commented Dec 28, 2018

I also had this issue, because I renamed one of the folders leading to a workspace.

Check to see in the Workspace explorer if there's a "!" symbol next to any of the workspaces' names. If so, just remove the Workspace and add it again.

Hope this helps.

Anyway, this shouldn't prevent the Terminal from being launched, unless you're trying to open the terminal in the directory of the workspace with the error (and even then, it should give a proper error, not "Exit Code 2")

I'm using:
Version: 1.31.0-insider (system setup)
Commit: e02e44464c02d617b98d0a3265bf5efef7794436
Date: 2018-12-21T06:22:58.579Z
Electron: 3.0.10
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT ia32 6.3.9600)

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 20, 2019
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) info-needed Issue requires more information from poster terminal Integrated terminal issues
Projects
None yet
Development

No branches or pull requests

4 participants