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
- Lingua principale
- TypeScript
- Stelle
- 2.4k
- Fork
- 351
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia tracciando il comando Ctrl+Alt+N dalla sua registrazione fino al percorso di esecuzione nel terminale, quindi riproduci il problema con del testo non inviato nel prompt. Il lavoro è completato quando l'esecuzione del comando non aggiunge più testo all'input esistente del terminale, anche dopo aver richiamato un comando precedente con la freccia Su.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript, vscode
- Ambito
- developer-experience, tooling
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100