0

I have installed the extension Code Runner for VS Code and it doesn't output any code. All that happens is that it goes to the terminal and writes path to file> python -u and path to file again but within "". Nothing is written in output either. I have python installed and even the extension for vs code. I have saved the file as well. Using run and debug works but not Code Runner.

starball
  • 20,030
  • 7
  • 43
  • 238
  • Could you show us a minimal example and the corresponding output? – Josef Aug 24 '20 at 14:34
  • You can find the `"code-runner.executorMap"` in the settings, the python entry should look something like this `"python": "python -u".` – Josef Aug 24 '20 at 14:37
  • This is what I get in the terminial: PS C:\Users\nickd\PycharmProjects\SecondSchoolProject> python -u "c:\Users\nickd\PycharmProjects\SecondSchoolProject\first.py" – Nicholas Chill Aug 24 '20 at 14:56
  • I have found executor map and "python": "python -u" – Nicholas Chill Aug 24 '20 at 15:10
  • Try setting `"code-runner.runInTerminal"` to `false`, so the output will appear in the output tab. Also make sure the script does have some output und is the same script you already debugged. – Josef Aug 24 '20 at 15:38
  • @Nicholas Chill Does the console have the expected output when you use"Run python File in Terminal"? How about when using code debugging? – Jill Cheng Aug 25 '20 at 06:49

1 Answers1

0

In "Output" tab, just to the left side of the "clear output" icon, you have a drop-down list (combo box/select). You get Tasks, Python...Code...

( Here's an image)

Select Code.

This solution was tested on Windows, I don't know if it works on Mac.

Kristian
  • 2,456
  • 8
  • 23
  • 23