vscode-code-runner

VSCode: Code Runner extension is unable to execute the code on git bash terminal?

天涯浪子 提交于 2021-02-19 05:55:11
问题 I am trying to run a simple program "primeRange.cpp" using Code Runner extension available for VSCode. I have selected my default terminal as git bash in VSCode , but when I hit Run on top right corner, it sends the command to bash to run the program using g++ compiler, but I am getting error as no such file or directory , when there exists a directory with the given name. How can I fix this? How can I customize which command to hit on bash when I press run on code runner? I want to set the

ScriptCS 0.17.01 Error Unexpected named argument

北慕城南 提交于 2021-02-19 03:39:38
问题 I tried to run my program using Visual Studio's Coderunner extension as well as from terminal with the scriptcs command. My code is as follows: using System; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { Console.WriteLine("hellowol"); } } } The error message reads: Unexpected named argument: Users/jfitz/Projects/C#/Projtest/test.cs 回答1: As mentioned in scriptcs/scriptcs issue 1188, this is from a scriptcs bug, which will be fixed in the next release

Running the contributed command: 'code-runner.stop' failed

≡放荡痞女 提交于 2021-02-11 12:32:37
问题 None of the JavaScript Programs that I have written over the past few months are working. So today, I am back at JS-101. I have a Node.js Module called app.js, stored in a folder called Test-02 Here is the complete program: console.log('Hello World'); When I go into the Command Prompt and run the program, the output is what you would expect: Hello World When I run the program from the Visual Studio Code Terminal, I type >node app.js and the result is what you would expect: Hello World But

VS Code Code Runner doesn't work with virtualenvs

丶灬走出姿态 提交于 2021-02-05 18:48:07
问题 I can't get Code Runner extension to work with virtualenvs. Whenever I try to run code that imports a library that is installed only in the virtualenv and not in the global Python installation I get an import error. Running the exact same code in terminal works. I am on Windows 10 and I have Python 3.6.5 installed. The precise error I am getting is: ModuleNotFoundError: No module named 'bs4' 回答1: I also faced same issue. solution which i found best is just add this line to your user or

Coderunner uses old 2.71 version of Python instead of 3.2 on OSX 10.7.5

感情迁移 提交于 2020-12-25 03:50:32
问题 I am trying to use the newer version of Python but when I type: import sys print sys.version_info I get back: sys.version_info(major=2, minor=7, micro=1, releaselevel='final', serial=0) In the terminal when I type python I get: Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin When I type python3 I get: Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin As

Coderunner uses old 2.71 version of Python instead of 3.2 on OSX 10.7.5

孤街醉人 提交于 2020-12-25 03:50:11
问题 I am trying to use the newer version of Python but when I type: import sys print sys.version_info I get back: sys.version_info(major=2, minor=7, micro=1, releaselevel='final', serial=0) In the terminal when I type python I get: Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin When I type python3 I get: Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin As

How to make Code Runner run in external terminal (Command Prompt)?

ぃ、小莉子 提交于 2020-12-12 07:02:30
问题 So, basically the Code Runner in Visual Studio Code can run in the integrated terminal. How can I make it to run in external terminal, which is command prompt because I need to present my program's output to my classmates, so it's not convenient to display it through the integrated one. I know there's a software like Dev-C++ that can run in external terminal, but I love to use this VS Code because of its clean UI, and the Code Runner plugin is pretty good doing its job. How can I do it just

How to make Code Runner run in external terminal (Command Prompt)?

怎甘沉沦 提交于 2020-12-12 07:02:13
问题 So, basically the Code Runner in Visual Studio Code can run in the integrated terminal. How can I make it to run in external terminal, which is command prompt because I need to present my program's output to my classmates, so it's not convenient to display it through the integrated one. I know there's a software like Dev-C++ that can run in external terminal, but I love to use this VS Code because of its clean UI, and the Code Runner plugin is pretty good doing its job. How can I do it just

VSCode: The term 'python' is not recognized…but py works

我们两清 提交于 2020-12-04 18:40:12
问题 I just installed python on VS Code and I can't run any python code using python command. python command: Running the code seems to run python command by default and it does not recognize it. When I right click and choose Run Code it complains: 'python' is not recognized as an internal or external command, operable program or batch file Same goes for manually running python main.py . When I open an elevated PowerShell and run python , it complains: python : The term 'python' is not recognized

VSCode: The term 'python' is not recognized…but py works

大城市里の小女人 提交于 2020-12-04 18:32:45
问题 I just installed python on VS Code and I can't run any python code using python command. python command: Running the code seems to run python command by default and it does not recognize it. When I right click and choose Run Code it complains: 'python' is not recognized as an internal or external command, operable program or batch file Same goes for manually running python main.py . When I open an elevated PowerShell and run python , it complains: python : The term 'python' is not recognized