Edward Tanguay
Edward Tanguay

Reputation: 193442

How can I fix the "segmentation fault" error in Visual Studio Code's terminal?

On Windows 10, I have Visual Studio Code installed.

When I open the terminal (Git Bash) and type less-watch-compiler, I get the error:

Segmentation fault

But if I go to the Git Bash terminal itself (outside Visual Studio Code) and type less-watch-compiler, the command works.

How can I fix this problem?

  1. I reinstalled Git for Windows, but it didn't help.

  2. I have the latest version of Visual Studio Code (1.36.1)

  3. When I use the "cmd" editor within Visual Studio Code, it works fine as well.

Upvotes: 3

Views: 5658

Answers (1)

barro32
barro32

Reputation: 2718

Not sure if it's the same problem but I was also getting segmentation fault errors running VSCode with WSL.
What fixed it for me was:
rm -rf ~/.vscode-server
The next time I tried the command, VScode downloaded the necessary files and everything worked again.

Upvotes: 10

Related Questions