formulahendry / formulahendry/vscode-code-runner

[Bug] Code Runner is not using Git Bash even though it's my default terminal

Open
#849 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

When I right click the shell script shown in my picture below and click `Run Code`, it seems like Code Runner incorrectly uses cmd instead of Git Bash and generates an error because it is using Git Bash style filepaths. The command it runs works properly when I copy paste it into Git Bash which is my VS Code default terminal.

![image](https://user-images.githubusercontent.com/10884874/129515284-bacc88ef-2f85-4af1-841e-049da88b2796.png)

I've seen similar reports on Stack Overflow and Github but the only solution I found was to add `"code-runner.terminalRoot": "/"` to my settings which didn't fix the problem for me.

```
VS Code Version: Version: 1.59.0 (system setup)
Commit: 379476f0e13988d90fab105c5c19e7abc8b1dea8
Date: 2021-08-04T23:13:12.822Z
Electron: 13.1.7
Chrome: 91.0.4472.124
Node.js: 14.16.0
V8: 9.1.269.36-electron.0
OS: Windows_NT x64 10.0.19042

- Code Runner Version: v0.11.5
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.