Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The terminal process command failed to launch exit code:0 and exit code:2

The visual studio code terminal is not working.
The shortcut ctrl+" for the terminal is not working.

Error:

The terminal process terminated with exit code: {0}

The terminal process command

'C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe' failed to launch (exit code: {2})

enter image description here

like image 934
yalinckol Avatar asked Aug 16 '19 07:08

yalinckol


1 Answers

Try creating an exception rule for winpty-agent.exe in you antivirus program.

File location: 

C:\Program Files\Microsoft VS Code\resources\app\node_modules.asar.unpacked\node-pty\build\Release\winpty-agent.exe

If first solution doesnt work for you, you can try to create exception rule for the whole folder where winpty-agent.exe is stored => "realese"

Folder location: 

C:\Program Files\Microsoft VS Code\resources\app\node_modules.asar.unpacked\node-pty\build\Release

Update 21.3.2020 I also had to make an exception in malwarebytes for winpty-agent.exe in appdata/local

C:\Users\myusername\AppData\Local\Programs\Microsoft VS Code\resources\app\node_modules.asar.unpacked\node-pty\build\Release\winpty-agent.exe
like image 74
strix25 Avatar answered Sep 29 '22 03:09

strix25