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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With