formulahendry / formulahendry/vscode-code-runner

[Bug]Code Running Before venv Activated

Open
#1,252 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

When using Code Runner to run a python code within venv, code can run before the venv is avtivated, which will cause the code be interrupted by a "KeyboardInterrupt".

Image

Image

It takes about 4 seconds to activate the venv.

It also happened in VSCode without Code Runner a few days ago, but it has been fixed by running the code after the venv is activated.

OS version: Windows 11 25H2
VSCode version: 1.108.1
Python version: 3.14.2
Python Plugin version: 2026.1.2026011501
Code Runner version: 0.12.2

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.