Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 295
Edward Tanguay Avatar asked Nov 29 '25 18:11

Edward Tanguay


1 Answers

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.

like image 200
barro32 Avatar answered Dec 01 '25 15:12

barro32



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!