Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code cannot detect cygwin git.exe path

I've just started using Visual Studio Code (on Windows) for new UI project I've just joined. I have my Path environment variable configured to point to my cygwin git executable as follows:

C:\cygwin64\bin

I've verified that this is working by opening a Windows command prompt and successfully executing Linux commands. However, when I open the git project in Visual Studio Code, which looks to the path to resolve its "git.path" configuration, I get the following error:

ENOENT: no such file or directory, lstat 'C:\cygdrive'

Explicitly configuration the Workspace Settings file (settings.json) doesn't work either.

Any ideas?

like image 603
jdogg Avatar asked Apr 08 '16 19:04

jdogg


Video Answer


1 Answers

just create a symlink (windows): open a cmd prompt and use the following command:

mklink /j "C:\cygdrive" C:\actual\path\to\your\cygdrive

PS: For babun users, it would be your home directory:

mklink /j "c:\home" C:\Users\{user}\.babun\cygwin\home
like image 197
Rigg802 Avatar answered Oct 04 '22 01:10

Rigg802