formulahendry / formulahendry/vscode-code-runner
The code execution command is pasted in the terminal after a potential unexecuted command. Should first clear the terminal prompt
- Vorherrschende Sprache
- TypeScript
- Sterne
- 2.4k
- Forks
- 351
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Hi, I hope this hasn't already been discussed; I wasn't able to find anything related in the issues.
- VS Code Version: 1.30.0
- OS Version: Ubuntu 16.04 / Linux x64 4.4.0-140-generic
- Code Runner Version: 0.9.5
**Describe the bug**
Pressing Ctrl + Alt + N when the terminal already has an unexecuted command pastes the execution command after this unexecuted command, usually resulting in a benine error.
**To Reproduce**
Steps to reproduce the behavior:
1. Open VSCode and terminal
1. Execute code runner: Ctrl + Alt + N
1. Now in the opened terminal, type any harmless string, such as ```$ eee```, without executing
1. Switch to the editor window and press Ctrl + Alt + N again
**Actual behavior**
Taking python as an example, the executed command is ```$ eee/usr/bin/env python "/my/path/myfile.py"```
As can be expected, this results in: ```bash: eee/usr/bin/env: No such file or directory```
**Expected behavior**
I expected code runner to first clear what's already been typed in the terminal prompt.
In my case this often happens when I inadvertently press the Up arrow in the terminal after execution, which pastes the previous command in the terminal prompt, then go back to the editor window and try to execute the code.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne damit, den Befehl Ctrl+Alt+N von seiner Registrierung bis zum Ausführungspfad im Terminal nachzuverfolgen, und reproduziere dann das Problem mit nicht abgeschicktem Text in der Eingabeaufforderung. Erledigt ist die Aufgabe, wenn die Ausführung des Befehls keine Eingaben mehr an bereits vorhandene Terminal-Eingaben anhängt, auch nachdem mit dem Pfeil nach oben ein vorheriger Befehl abgerufen wurde.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript, vscode
- Bereich
- developer-experience, tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100