Skip to content

Investigate pythonExecutionFactory and Select Interpreter  #24190

@anthonykim1

Description

@anthonykim1

Related: #24122

We may be selecting undesired conda environment in

const condaExecutionService = await this.createCondaExecutionService(pythonPath, processService);
if (condaExecutionService) {
return condaExecutionService;
}
const env = createPythonEnv(pythonPath, processService, this.fileSystem);
return createPythonService(processService, env);
which are used for getting Python executable for testing purposes, etc.

TODO:

  1. Investigate how pythonexecutionFactory is related to Select interpreter dropdown we have. => These two are separate things.
  2. Ensure these two Python environment/executables are aligned.
  3. Potentially look into some environment service where we can store the state of currently selected environment.

/cc @eleanorjboyd

Metadata

Metadata

Assignees

Labels

area-environmentsFeatures relating to handling interpreter environmentsdebtCovers everything internal: CI, testing, refactoring of the codebase, etc.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions