Skip to content

[Bug]Code Running Before venv Activated #1252

@HECARIIA

Description

@HECARIIA

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions