Skip to content

Using python and test plugin fails to recognise pixi environment #23975

@sailngarbwm

Description

@sailngarbwm

Hi vscode-python folks,

I have been using the Python plugin with pytest and the test plugin for a long time with conda/mamba environments, but I have recently switched to Pixi for python environment management. Using the Python plugin, I have pointed the interpreter to my pixi environment path, and have been able to run notebooks and the like using the interpreter.

However, the test plugin does not recognise the pixi environment as a pixi environment, showing the following output error when searching for the tests:

image

It appears like it can't find pixi, so is trying to run it as a mamba environment.

I am running vscode using the "remote" plugin on WSL 2 Debian

vscode version:

image

Python plugin version:
v2024.12.3

Any help would be great, as I can't wait to use all of these new tools together!

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions