formulahendry / formulahendry/vscode-code-runner

Java Code Won't Run When Using GitBash as Default VSCode Terminal

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

Description

- VS Code Version: 1.30.1 (lastest)
- OS Version: Windows 10 (lastest)
- Code Runner Version: Lastest

**Describe the bug**
When I attempt to run my code while having GitBash as my primary VSCode terminal, the code won't run and instead the terminal just constantly ">" like an editor or something (not really sure what it wants).

**To Reproduce**
Steps to reproduce the behavior:

1. Set GitBash as you primary terminal in VSCode
2. Attempt to compile and run the file using the "play button"
3. Voila! The terminal just prompts with ">" or says "bash: cd: too many arguments"

**Actual behavior**
The code doesn't actually ever run; however, when I have cmd as my main terminal the code does run and I'm not really sure why this works like this. Besides, I think we all know the cmd is utter trash compared to GitBash, so I just want to have the flexibility to use which ever I prefer.

**Expected behavior**
The code would run no matter which terminal I decide to use as my default; in the end, manually executing/compiling the project work while using "javac".

**Screenshots**
![codelaunchbug](https://user-images.githubusercontent.com/45319275/50527170-9b746b80-0ab4-11e9-9010-c0bf70e69dc0.PNG)

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.