Skip to content

VSCode Python test discovery not activating the environment #987

@renan-r-santos

Description

@renan-r-santos

I'm not sure if this issue should live here or in vscode-python. I have noticed this after fixing the pixi-code extension, see microsoft/vscode-python-debugger#872 for context, but it likely affects conda users too.

When discovering tests using VSCode and pytest, the environment doesn't get properly activated, for example, pixi --shell, as in renan-r-santos/pixi-code/src/pixi/utils.ts. This breaks test discovery that depends on environment variables set during Conda environment activation.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priorityneeds PR

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions