VS Code Terminal opens, then crashes and disappears after pressing kill button

Viewed 1487

I get this error after I clicked "Kill terminal" in VS Code:

"Unable to resolve your shell environment: Unexpected exit code from spawned shell (code null, signal SIGSEGV)"

enter image description here

Now my VSCode does this when I click on Terminal, New Terminal: It opens the window for about one second and then crashes and disappears.

I already deleted the settings.json file because I found a post on a similar problem. Unfortunately this did not help.

2 Answers

I believe I got the same message and was definitely struggling with the same Terminal crashing issue. What worked for me was uninstalling VS Code, and then downloading it again.

I'm using macOS and surprisingly, all my extensions were still available in the reinstall. There's probably a more technical way of doing it but that worked for me so I hope that helps!

I had this same issue. The issue was resolved for me after I updated VS Code.

Related