即使我在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位中
任何想法如何克服这个问题?
代码259通常表示STILL_ACTIVE,这很奇怪。您可以尝试使用ProcessMonitor来确定在呼叫过程中启动了哪些进程,这也许可以为您提供线索。
打开任务管理器我在VS Code的所有过程中单击了“结束任务”
错误消失