Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The terminal shell path "..\..\..\vsCode\git\bin\bash.exe" does not exist in VS Code Windows

I am trying to set a portable development Environment:

VS Code - Portable mode git-bash - portable Node.js - portable

VS Code throws Error: The terminal shell path "......\vsCode\git\bin\bash.exe" does not exist

I have C:......\Documents\Storage\vsCode\data\user-data\User\settings.json and C:......\Documents\Storage\vsCode\git\bin\bash.exe

settings.json:

{
    // Git Bash
    "terminal.integrated.shell.windows": "..\\..\\..\\vsCode\\git\\bin   \\bash.exe"
}

It works in CMD:

C:\.........>cd C:\...........\Documents\Storage\vsCode\data\user-data\User

C:\.......\Documents\Storage\vsCode\data\user-data\User>cd ..\..\..\git\bin\

C:\.......\Documents\Storage\vsCode\git\bin>

Can you guide me how to deal with relative path in VS Code without setting global variables in the operating system. I will need to do the same thing with Node.

Sorry for the messy post but I am fairly new to posting here.

like image 385
Hren Avatar asked Aug 23 '19 14:08

Hren


Video Answer


3 Answers

You can follow below link : https://code.visualstudio.com/docs/editor/integrated-terminal

You need to edit the terminal integrated path in settings.json file to which ever thing you want it to compile it with

enter image description here

See the URL in the screenshot to find the location for settings.json file at my end: enter image description here

like image 171
Christina Sebastian Avatar answered Nov 10 '22 00:11

Christina Sebastian


I searched for "shell path" in the VS Code settings and noticed that the path was wrong (Program Files instead of Program Files (x86))

I had to change it to

 "terminal.integrated.shell.windows": "C:\\Program Files (x86)\\Git\\bin\\bash.exe",
like image 24
Rathalin Avatar answered Nov 10 '22 00:11

Rathalin


@Rhatalin thank you for the suggestion. I had the same issue on Windows 10. After updating below setting in settings.json (File -> Preferences -> Settings search for shell and choose Terminal-Integrated-Automation Shell: Windows -> Edit in settings.json) the issue was gone.

"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe"
like image 34
Strabek Avatar answered Nov 10 '22 00:11

Strabek