Closed benjamin85 closed 1 year ago
Hi, the code failed to execute sometime due to the race condition between sending text to the terminal vs. sending the newline character to execute the code.
Currently there are two ways the extension is mitigating this:
ExecutionLagMilliSec
in the configuration which adds a delay between sending code to the terminal and sending the execution command to the terminal. This is useful for those with a less responsive computer.SendCommandMethod
from clipboard
to file
. This is recommended for most modern computer with SSD hard drive.
clipboard
option will be deprecated in the future since it subverted the system clipboard file
option is faster with SSD and can help reduce the effect of the race condition A more permanent solution is for VSCode to formally support IPython where there is an npm
API for IPython or VSCode extension has a python
API. Both are well beyond this extension scope. I'll keep an eye for potential solution so the options above are currently the best I got.
Hi, I believe this issue is resolved. Please reopen issue with a way to reproduce otherwise.
hi, my os is win10 and version of vscode is 1.80. when i press f5 or f9 to run codes in text editor, codes could be sent to the terminal properly and sometimes executed. however, sometimes codes are just pasted to the terminal and i need to press Enter to execute them. i have no idea what triggers the malfunction. what should i do to fix the problem? lots of thx!