Tyriar / vscode-shell-launcher

VS Code extension that enables easy launching of multiple shell configurations in the terminal
https://marketplace.visualstudio.com/items?itemName=Tyriar.shell-launcher
MIT License
49 stars 9 forks source link

Cygwin - terminated with exit code 1 ? #23

Closed SheepDomination closed 6 years ago

SheepDomination commented 6 years ago

Oh I see why @Tyriar promoted this based on a question I had for VSCode, it's his tool. I have the extension installed but; after setting up Cygwin and existing from a Cygwin Terminal I get the error mentioned a few times with VSCode and that is this.

Why am I getting this error only with Cygwin ? As well I'd like to disable showing of the path of the shell I want to open within shell-launcher; and change the color of each shell name in the list.

Tyriar commented 6 years ago

@SheepDomination does it happen when you configure a normal terminal to launch cygwin? Can you share your settings.json file?

SheepDomination commented 6 years ago

@Tyriar Before changing to Shell-launcher I don't recall having the terminated with exit code 1 error with Cygwin. This is the section of my settings.json file, I hope it helps ?

"shellLauncher.shells.windows": [ { "shell": "C:\\Windows\\System32\\cmd.exe", "label": "cmd" }, { "shell": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", "label": "PowerShell" }, { "shell": "C:\\Windows\\System32\\bash.exe", "label": "WSL Bash" }, { "shell": "C:\\cygwin64\\Cygwin.bat", "label": "Cygwin Bash" } ]

Tyriar commented 6 years ago

Do you need to use cygwin64\bin\bash.exe? https://github.com/Microsoft/vscode/issues/14977

SheepDomination commented 6 years ago

The solution for issue #14977 as you posted, worked; the error has disappeared. I suppose the shell arguments are necessary for this issue.

Although I don't quite understand what you mean by, Do you need to use cygwin64\bin\bash.exe? ?