formulahendry / formulahendry/vscode-code-runner

[Bug] Cannot run python with "code-runner: Run in terminal" being checked

Open
#735 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

- VS Code Version: 1.53.0
- OS Version: Windows_NT x64 10.0.18363
- Code Runner Version: 0.11.2

**Describe the bug**
Normally, code runner displays output in the output tab in read-only. Python apps that get inputs need to be run in terminal. After some research, some suggest that with "with code-runner: Run in terminal" being checked helps, so I tried, but ended with the error shown in the picture below.
**Screenshots**
![image](https://user-images.githubusercontent.com/69001162/107017804-354d8d00-67d2-11eb-8e21-6674df38c08a.png)
![image](https://user-images.githubusercontent.com/69001162/107017055-40ec8400-67d1-11eb-8a2f-48f2e3471c46.png)

I have no problem running the full command in external terminal.
![image](https://user-images.githubusercontent.com/69001162/107017998-78a7fb80-67d2-11eb-826e-4b8fdf607072.png)
or run with "code-runner: Run in terminal" being unchecked
![image](https://user-images.githubusercontent.com/69001162/107018406-f966f780-67d2-11eb-9b91-e91584003872.png)

**To Reproduce**
Steps to reproduce the behavior:

1. Check "code-runner: Run in terminal"
2. Run a python file

executorMap
![image](https://user-images.githubusercontent.com/69001162/107017649-fc151d00-67d1-11eb-8205-d6288b388e5d.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.