Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 03 17:28
    amansheaven commented #24
  • Mar 29 23:10
    kyle-goodwin commented #451
  • Mar 29 23:09
    kyle-goodwin commented #451
  • Mar 29 01:54
    cwest28 commented #268
  • Mar 27 18:19
    BaldestFrog commented #400
  • Mar 23 19:38
    fifiteen82726 commented #46
  • Mar 23 16:34
    KimAdrian commented #268
  • Mar 22 22:13
    JoshuaYonathan commented #272
  • Mar 21 17:31
    AmericanY opened #592
  • Mar 19 23:16
    elisio2gribeiro opened #591
  • Mar 15 13:27
    MrSinner commented #589
  • Mar 15 13:25
    MrSinner commented #589
  • Mar 13 16:43
    tiaodiao opened #590
  • Mar 11 03:12

    formulahendry on 0.9.17

    (compare)

  • Mar 11 03:02

    formulahendry on master

    0.9.17 (compare)

  • Mar 11 02:58
    formulahendry commented #588
  • Mar 11 02:58
    formulahendry closed #588
  • Mar 11 02:58

    formulahendry on master

    Added support for CUDA through … (compare)

  • Mar 10 18:46
    Helderjfl synchronize #588
  • Mar 10 17:50
    llJll commented #395
あらら
@agilewaterfall_twitter
Hello all, I've been using the Code Runner extension for some time now, but suddenly it broke
I've been using it to run Python, but now it produces no output at all
Like I get zero feedback inside the IDE when I do Run Code with Ctrl+Shift+P

In my user settings I have this

    "python.pythonPath": "C:\\Users\\$USERNAME$\\AppData\\Local\\Programs\\Python\\Python37\\python.exe",
    "code-runner.executorMap": {
        "python": "python",
    },

The python.pythonPath should be valid, because running it in terminal produces gives the interactive Python as expected.

GaribBeetar
@GaribBeetar

Forget the settings dude, I spent days trying to resolve, did everything, even unistall the app and what finally solved it to me was to delete the "Extensions" folder ubicated in "C:\Users\user\ .vscode"

Of course, before doing that, take a good note of all the installed extensions to again install those that you are gonna need for your job. Good luck ...

あらら
@agilewaterfall_twitter
I tried deleting and reinstalling the extensions, didn't work. Also tried wiping settings.json after reinstalling extensions, didn't work.
あらら
@agilewaterfall_twitter
Uhm I think I get it. Basically VSCode needs to recognise the folder that you're working in
Same with Code Runner
I'm not sure why it auto-detects the folder last time though
Or maybe I did it the 1st time and forgot all about it
But I doubt it tho, I think it did it automatically in the past
Probably some PATH-related things with respect to VSC/Code Runner
GaribBeetar
@GaribBeetar
What I meant was to delete the folder "Extensions", it has nothing to do with deleting or unistalling the extensions from inside the App, that doesn't work, at least for me. Close the App and then go to "C:\Users\user\ .vscode\Extensions" and then delete that folder. Start the App .... You will have a "virgin" App.
Sevrene
@Sevrene
Trying to run a packaged java program results in an error finding the main class, this is because the default executorMap is cd $dir && javac $filename && java $fileNameWithoutExt Meaning it is trying to run java $fileNameWithoutExt from the package directory when it should be running java packageName.$fileNameWithoutExt from the parent directory, I have made a temporary fix of cd $dir && javac $fileName && cd .. && java packageName.$fileNameWithoutExt Though this requires me to manually update the packageName portion.
Anyone have a better method of fixing this or is my best bet to create a custom parameter of $packageName?
Jaavv
@Jaavv
Hello, I cant seem to find a way to add command-line arguments when trying to run a C program. Can anyone point me to the right direction? Thanks.
Kyle Ruzic
@kyruzic
When I run a python program with code runner then CTRL+C to kill it midway through I am left with a "tempCodeRunnerFile.py" that usually has a single character in it
This makes so I have to go and manually delete that file before I can run a python file again
why is this
labihi97
@labihi97
Hi guys, may i ask a question? I want VSCode to compile & run C files, but no matter what I do I must use Code-Runner et similia, but by using these extensions I can't see my variables and use breakpoints.
Do you know a possible reason & fix?
Matt "Shparki" Murray
@shparki
Hey, so I am super frustrated by this at this point, but for some reason code runner has just all of a sudden stopped clearing the console when it runs. This is a minor issue but I have not changed anything settings wise. By this point, I have uninstalled it and reinstalled it, used older versions, changed my default console, and nothing is working its still not clearing even when the setting is marked.
Jun Han
@formulahendry
@shparki Have a screenshot? Then others may be possible to help you.
Matt "Shparki" Murray
@shparki
Yeah!
Matt "Shparki" Murray
@shparki
image.png
without any terminal activated
image.png
First coderun
image.png
Second, and then everything after this just repeats
Here are my settings
image.png
Jun Han
@formulahendry
@shparki Seems to be a bug: formulahendry/vscode-code-runner#572
Gurjus
@Gsbhasin84_gitlab
Please add input support to code runner!
Jun Han
@formulahendry
@Gsbhasin84_gitlab Already support: formulahendry/vscode-code-runner#91
Renato La Laina
@xinxilas
Hey friends! how can i set to automatically close first instance of Code Runner, and run a new one? For python.... i want to build a new instance, without manually close the last one
jaysalhan
@jaysalhan
i have node js installed in my machine, but when I try running the JavaScript using code runner it says 'node' is not recognized as an internal or external command,
operable program or batch file. Can some one please help ? thanks
Gurjus
@Gsbhasin84_gitlab
Great thanks @formulahendry
Viresh Gupta
@virresh

Hi,
Is there a way to provide terminal input from a comment?
For small scripts that take an input I'd like to be able to reuse same input again and again

Something like https://packagecontrol.io/packages/Sublime%20Input

Raul Chiarella
@HorselessName
Hi
How do i ignore extensions?
I don't want to run .py using Code Runner because it does'nt recognize ASCII
PAB
@pablanche

vcpg with VScode and CodeRunner directory path issue:
I installed the C++ boost library using vcpg.
Now all the squiggles marks have disappeared in my VS Code document. So the path should be recognized by VS Code.
However, when I run my cpp code in VS Code using Code Runner (0.9.16), I have the following message:


Mycode.cpp:8:11: fatal error: boost/iterator/iterator_facade.hpp: No such file or directory
8 | #include <boost/iterator/iterator_facade.hpp>
| ^~~~~~~~
compilation terminated.


How should I configure Code Runner (or else) so it finds the correct path?

SABERGLOW
@SABERGLOW

Hi...im totally new to this extension. trying to set it up for C++.

what exactly do i need to add into my settings.json file?

currently i have tried these 2 settings:

"code-runner.executorMap":
{
//"cpp": "cd $dir && g++ -std=c++14 $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt"

AND

    "cpp": "cd $dir && g++ *.cpp -o $fileNameWithoutExt && $fileNameWithoutExt.exe"
},

BUT I'M GETTING THESE ERRORS:
g++: error: 2: No such file or directory

Batakrishna Sahu
@bksahu

Hi, first of all, thanks for this great extension.
I am trying to set up a custom shortcut to execute the current file. I referred to #92 and this is what my keybindings.json looks like:

[
    {
        "key": "ctrl+\"",
        "command": "code-runner.run"
    },
]

This doesn't seem to work. It works when the key is set to ctrl+alt+k etc. But not for ctrl + \" or ctrl+alt+\". Any ideas?

Thanks :)

Rafli Athala Jaskandi
@VladRafli

Hello everybody, I got some trouble here
Since yesterday at 23 March 2020, my code i compile with code runner can be run only once, when compiled again there a error message like this:
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file Queue.exe: Permission denied
collect2.exe: error: ld returned 1 exit status

And the compiled exe cannot be deleted or even open it, it says that I dont have permission to read it. I already search on google to find the solution but seems I didn't found one. Can anyone help me?
Thank you.

Ayush
@Ayush11527103_twitter
hi
AmericanY
@AmericanY
Hello
@formulahendry please take a look if you have a time. thanks in advance
Viresh Gupta
@virresh

Hi,
Is there a way to provide terminal input from a comment?
For small scripts that take an input I'd like to be able to reuse same input again and again

Something like https://packagecontrol.io/packages/Sublime%20Input

Just in case someone else stumbles here on the same problem, I didn't find any useful feature to achieve this.
So, I made an extension wrapping code-runner to deal with this: https://marketplace.visualstudio.com/items?itemName=virresh.cinp