command 'code-runner.run' not found
One day, I open my vscode but find that the code cannot run any more, and I got a error "command 'code-runner.run' not found".
Could you try to reinstall the Code Runner extension?
thanks,now it runs well.
Good to know~
@formulahendry ,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
Having the same issue. Tried Reinstall. I can find no reference to this.
I am experiencing the same issue as well, after reinstall. Any updates?
update: Solution found in another thread
Please delete the C:\Users*.vscode\extensions\formulahendry.code-runner-* folder and install extension again.
update: Solution found in another thread
Please delete the C:\Users***.vscode\extensions\formulahendry.code-runner-*** folder and install extension again.
Not working though.
Same issue here. Any update?
I have the same problem.-19-6-1
I have same issue,have any solution to deal with it?
I have the same problem.-19-6-1
I delete all of my extension and downland the latest version of VsCode, then cover the last version file. It works well now, but I don't know why.
发生这个问题的原因是micromatch引起的, 请尝试打开formulahendry.code-runner-0.9.10/out/src/codeManager.js 把以下位置的代码注释掉,禁用micromatch。保存然后重新打开编辑器。问题解决!
line 12: //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; } } } } */
@juntaosun I comment those code, and it works well, thanks !
@juntaosun Yeah,thanks!
发生这个问题的原因是micromatch引起的, 请尝试打开formulahendry.code-runner-0.9.10/out/src/codeManager.js 把以下位置的代码注释掉,禁用micromatch。保存然后重新打开编辑器。问题解决!
line 12: //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; } } } } */
it works, thx
发生这个问题的原因是micromatch引起的, 请尝试打开formulahendry.code-runner-0.9.10/out/src/codeManager.js 把以下位置的代码注释掉,禁用micromatch。保存然后重新打开编辑器。问题解决!
line 12: //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; } } } } */
Thanks a million, works again.
@juntaosun That's interesting.. How do you find it is the problem of micromatch?
发生这个问题的原因是micromatch引起的, 请尝试打开formulahendry.code-runner-0.9.10/out/src/codeManager.js 把以下位置的代码注释掉,禁用micromatch。保存然后重新打开编辑器。问题解决! line 12: //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; } } } } */
This Worked!! Thansk a Lot.
Hi All, I am having code runner issue as well. Apologies for asking dumb question but where do you run above code to fix the issue. Thanks