KEMBAR78
Update PythonExecutionService to support "conda run". · Issue #7696 · microsoft/vscode-python · GitHub
Skip to content

Update PythonExecutionService to support "conda run". #7696

@ericsnowcurrently

Description

@ericsnowcurrently

This will involve the following:

  • change PythonExecutionService.pythonPath (a string) to PythonExecutionService.pyArgv (an array of strings)
  • update PythonExecutionService.create() to pass an array of strings to PythonExecutionService()
  • update PythonExecutionService.createActivatedEnvironment() to pass an array of strings to PythonExecutionService()
  • verify that the usage in the various places works properly for conda and non-conda:
    • formatting
      • src/client/formatters/baseFormatter.ts (via PythonToolExecutionService)
    • linting
      • src/client/linters/errorHandlers/notInstalled.ts
      • src/client/linters/baseLinter.ts (via PythonToolExecutionService)
    • testing
      • src/client/testing/common/services/discovery.ts
      • src/client/testing/common/runner.ts
      • src/client/testing/common/runner.ts (via PythonToolExecutionService)
    • installers
      • src/client/common/installer/pipInstaller.ts
      • src/client/common/installer/productInstaller.ts
    • debugger
      • src/client/debugger/extension/adapter/factory.ts
    • interpreter discovery
      • src/client/interpreter/locators/services/workspaceVirtualEnvWatcherService.ts
      • src/client/interpreter/configuration/pythonPathUpdaterService.ts
      • src/client/interpreter/helpers.ts
      • src/client/interpreter/interpreterService.ts
      • src/client/interpreter/locators/services/windowsStoreInterpreter.ts
    • import sorting
      • src/client/providers/importSortProvider.ts
    • jedi
      • src/client/providers/jediProxy.ts
    • refactoring
      • src/client/refactor/proxy.ts

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

Relationships

None yet

Development

No branches or pull requests

Issue actions