Skip to content

Investigate pythonExecutionFactory and Select Interpreter  #24190

Closed

Description

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 Eleanor Boyd (@eleanorjboyd)

Activity

  1. anthonykim1 commented on Oct 2, 2024

    @anthonykim1
    Author

    #24198 Should help abit?? I'm not too confident this resolved the problem.

  2. anthonykim1 commented on Oct 21, 2024

    @anthonykim1
    Author

    Seems resolved from #24122 on v2024.17.2024101501 or higher.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-environmentsFeatures relating to handling interpreter environmentsdebtCode quality issues

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions