formulahendry / formulahendry/vscode-code-runner
code-runner.executorMap java $dirWithoutTrailingSlash default
- Vorherrschende Sprache
- TypeScript
- Sterne
- 2.4k
- Forks
- 351
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
- 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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- documentation
- Issue-Typ
- Bug
- Schwierigkeit
- 1/5
- Geschätzter Aufwand
- Unter einer Stunde
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 35/100