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

vscode-code-runner terminal issue

Open AmericanY opened this issue 6 years ago • 1 comments

VSCode Info:

Version: 1.43.1 (system setup)
Commit: fe22a9645b44368865c0ba92e2fb881ff1afce94
Date: 2020-03-18T07:01:20.184Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.18363

Code-Runner:

Version: 0.9.17

My Settings:

{
    "workbench.startupEditor": "none",
    "editor.formatOnSave": true,
    "editor.formatOnPaste": true,
    "code-runner.saveFileBeforeRun": true,
    "python.pythonPath": "C:\\Users\\AmericaN\\Desktop\\Lab\\env\\Scripts\\python",
    "code-runner.showExecutionMessage": false,
    "code-runner.clearPreviousOutput": true,
    "terminal.integrated.copyOnSelection": true,
    "workbench.panel.defaultLocation": "right",
    "code-runner.executorMap": {
        "python": "$pythonPath -u $fullFileName"
    },
    "terminal.integrated.shellArgs.windows": [
        "-NoLogo"
    ],
    "python.terminal.activateEnvInCurrentTerminal": true,
    "python.jediEnabled": false,
    "code-runner.runInTerminal": true
}

Issue:

When i run my code using ALT CTRL N. i see that the code ran not under my venv and that's why not detected geckodriver for example.

But once i repeat ALT CTRL N, i see it's detect it without issue !

How can i correct it to be usually run my code under venv ?

AmericanY avatar Mar 21 '20 17:03 AmericanY

is there a solution for this issue as of today?

AmericanY avatar Apr 03 '23 10:04 AmericanY