formulahendry / vscode-code-runner

Code Runner for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner
MIT License
2.18k stars 291 forks source link

Enable to enter input value #1057

Open Preetpatel30112002 opened 1 year ago

Preetpatel30112002 commented 1 year ago

Type: Bug

p = input('enter name:') print(p) after running my code i am not able to enter input in coderunner extension

Extension version: 0.12.0 VS Code version: Code 1.79.2 (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 2023-06-14T08:57:04.379Z) OS version: Windows_NT x64 10.0.22621 Modes:

wjandrea commented 10 months ago

See #72

victorbnl commented 7 months ago

I think the “Run in terminal” workaround is not ideal as it makes it impossible for Code Runner to track the process so it cannot be stopped from the interface anymore (from the red square stop button which is shown when the option is disabled). In my opinion code should run in a pane, like the current “Output” one, but where the user can provide input. Another option would be to run it in terminal but keep tracking the process.