vscode-code-runner icon indicating copy to clipboard operation
vscode-code-runner copied to clipboard

command 'code-runner.run' not found

Open VeselinAtanasov opened this issue 7 years ago • 11 comments

I did try everything - reinstall Code Runner several times, add the default settings, etc, but still getting the error 'command 'code-runner.run' not found'. I ma testing it with simple app.js file with 2 console.logs in in and every time I press Code Run button I am getting this error. When I try with Ctr+Alt+N I am getting the same error too :command 'code-runner.run' not found. Just for the reference the extension worked perfectly some months ago

VeselinAtanasov avatar Nov 15 '18 14:11 VeselinAtanasov

Same problem here! Code Runner Failure

Death-Waltz avatar Apr 20 '19 15:04 Death-Waltz

same here. I just update my system to mojave and error appeared.

YingLaiLin avatar Jun 10 '19 13:06 YingLaiLin

Same here. I tried to uninstall reinstall extension, then uninstall and delete formulahendry.code-runner-0.9.11 in profile and reinstall, no way. Then I also removed settings under appdata\code\roaming, and uninstalled Then extension appeared as installed but could not uninstall nor install Then I stoped code, I ensured all extension traces are cleaned up, then restart code, reinstall extension, thn it works, oufff!

pierrecoach avatar Jul 25 '19 13:07 pierrecoach

I find a solution for this, but I forget where I get from. comment following code in formulahendry.code-runner-0.9.10/out/src/codeManager.js, and edit it like follows : //const micromatch = require("micromatch"); line 225~236: /* if (executor == null) { const executorMapByGlob = this._config.get("executorMapByGlob"); if (executorMapByGlob) { const fileBasename = path_1.basename(this._document.fileName); for (const glob of Object.keys(executorMapByGlob)) { if (micromatch.isMatch(fileBasename, glob)) { executor = executorMapByGlob[glob]; break; } } } } */

YingLaiLin avatar Jul 25 '19 13:07 YingLaiLin

@YingLaiLin you are 纯爷们 大家注意 //const micromatch = require("micromatch"); 也需要注释掉 --- pay attention this line should be commented also!!!!(on line 12)

superchangme avatar Dec 24 '19 04:12 superchangme

I have tried all the possible solutions highlighted above but still not working

Chuks-Onuh avatar Apr 10 '20 06:04 Chuks-Onuh

Just uninstall all of extension and Visual Studio Code. Then, installing Visual Studio Code & Code Runner & C/C++(extension) again. The way it works in my case.

Luck19921 avatar Sep 16 '20 10:09 Luck19921

Just uninstall all of extension and Visual Studio Code. Then, installing Visual Studio Code & Code Runner & C/C++(extension) again. The way it works in my case.

i also thought for it

etherRAWRR avatar Mar 13 '21 23:03 etherRAWRR

Hello, it didn't work for me!

bild

soheil56 avatar Aug 31 '21 10:08 soheil56

yeah just sop using vscode all long then :)

aayan-glitch avatar Feb 23 '22 04:02 aayan-glitch

I don't want this extension.I even uninstalled this but still when I click on "shit+r" .I always get this error. image image I am really frustated.Can't able to use capital "r" anywhere.

NaveenkumarMD avatar Mar 25 '22 14:03 NaveenkumarMD