formulahendry / formulahendry/vscode-code-runner

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

Aperta
#409 2 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
2.4k
Fork
351
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

- 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)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia riproducendo il problema dal pulsante di esecuzione di VS Code con Git Bash selezionato, quindi confronta il comportamento del terminale con cmd. Esamina come Code Runner gestisce il comando Java generato e l'invocazione di cd segnalata; il lavoro è terminato quando il codice Java viene eseguito dal pulsante di esecuzione in entrambi i terminali senza un prompt ">" ripetuto o un errore "cd: too many arguments".

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
bash, git, java, vscode
Ambito
developer-experience, tooling
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.