formulahendry / vscode-code-runner

Code Runner for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner
MIT License
2.18k stars 288 forks source link

vscode-code-runner terminal issue #592

Open AmericanY opened 4 years ago

AmericanY commented 4 years ago

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 commented 1 year ago

is there a solution for this issue as of today?