formulahendry / formulahendry/vscode-code-runner
code-runner.executorMap java $dirWithoutTrailingSlash default
- Lingua principale
- TypeScript
- Stelle
- 2.4k
- Fork
- 351
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
- VS Code Version: 1.34.0
- OS Version: Windows_NT x64 10.0.177763
- Code Runner Version: 0.9.9
- Terminal: MINGW64
**Describe the bug**
Default value for code-runner.executorMap.java hangs on CD when code-runner.runInTerminal is set to true
**To Reproduce**
Steps to reproduce the behavior:
1. Install latest Java JDK
2. Use default or README recommended code-runner.executorMap java key value
> cd $dir && javac $fileName && java $fileNameWithoutExt
3. Use a java Scanner (or something that requires a read/write terminal
4. Switch "code-runner.runInTerminal" to true
5. Run code
**Actual behavior**
> cd "path/to/java/" && javac test.java && java test
Terminal will hang at CD command (because trailing slash escapes the end quote).
**Recommended fix**
Update your README so that the java default value is
> cd $dirWithoutTrailingSlash && javac $fileName && java $fileNameWithoutExt
This will remove the trailing slash, the automatic quotes around your directory path will close, and your java code will run just fine.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Open the README and locate the code-runner.executorMap.java example, then compare it with the runInTerminal behavior described in the issue. Verify the documented command with a Java program that uses Scanner; done means the example no longer leaves the terminal hanging at the directory change.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- documentation
- Tipo di issue
- Bug
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 35/100