Finn
Finn

Reputation: 211

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

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.

Upvotes: 8

Views: 8306

Answers (4)

praveen
praveen

Reputation: 1

If your .bashrc file is messed up then this happens. Alternatively you can create a new user on your remote machine and try connecting then this works.

Upvotes: 0

Thilun
Thilun

Reputation: 59

Simply restart the computer solved the issue for me (MacOS)

¯_(ツ)_/¯

Upvotes: 5

Calvin Raab
Calvin Raab

Reputation: 1

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

Upvotes: -1

vijaivir
vijaivir

Reputation: 636

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!

Upvotes: 2

Related Questions