Skip to content

VSCode Python test discovery not activating the environment #987

Description

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

Labels

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

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions