每当我在VS代码1.18中打开集成终端时,它都会崩溃PowerShell

时间:2017-11-11 20:27:38

标签: powershell visual-studio-code

即使我在setting.json中设置了以下代码:

"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe"

每当我打开"集成终端"它开始并立即显示:

"The terminal process terminated with exit code: 259"

还有一个代码外的对话框说:

"powershell has stopped working
A problem caused the program to stop working correctly. 
Windows will close the program and notify you if a solution is available."

这也发生在32位和64位

知道如何克服这个问题吗?

2 个答案:

答案 0 :(得分:0)

代码259通常表示STILL_ACTIVE,这很奇怪。 您可以尝试使用ProcessMonitor来确定在呼叫过程中启动了哪些进程,这也许可以为您提供线索。

打开任务管理器 我在VS Code的所有过程中都单击了“结束任务”

错误消失

答案 1 :(得分:0)

It is all due to virus effected Program .Which is running in background Applications.
Open your Task Manager & End all the Tasks which are running in background.


OR

访问此链接以获得准确的解决方案。 https://webautomationtool.blogspot.com/2021/01/the-terminal-process.html