Repository navigation
Update PythonExecutionService to support "conda run". #7696
Copy link
Copy link
Closed
Labels
area-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environmentsdebtCode quality issuesCode quality issues
Milestone
Description
Activity
- addeddebtCode quality issuesCode quality issues
on Sep 30, 2019 - addedarea-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environmentsand removed
on Oct 10, 2019 Make sure
conda runworks with both named environment and non-named environment (where we have to use the path)- added and removed
on Nov 4, 2019 To validate:
- workspace with a named conda environment (
conda create --name yourenvorconda create -n yourenv)- extension loads
- extension selects the workspace correctly
- formatting should be executed using
conda run - linting should be executed using
conda run - run in terminal should be executed using
conda run - test discovery using pytest should be executed using
conda run
- workspace with a prefixed conda environment (
conda create --prefix path/to/env)- extension loads
- extension selects the workspace correctly
- formatting should be executed using
conda run - linting should be executed using
conda run - run in terminal should be executed using
conda run - test discovery using pytest should be executed using
conda run
- workspace with a named conda environment (
- assigned and unassigned
on Nov 25, 2019 validated
Found an unrelated issue while validating it. #8783
- locked as resolved and limited conversation to collaborators
on Dec 3, 2019
Metadata
Metadata
Assignees
Labels
area-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environmentsdebtCode quality issuesCode quality issues
This will involve the following:
PythonExecutionService.pythonPath(a string) toPythonExecutionService.pyArgv(an array of strings)PythonExecutionServiceaccordinglyPythonExecutionService.create()to pass an array of strings toPythonExecutionService()pyArgvaccordingly)PythonExecutionService.createActivatedEnvironment()to pass an array of strings toPythonExecutionService()pyArgvaccordingly)src/client/formatters/baseFormatter.ts(viaPythonToolExecutionService)src/client/linters/errorHandlers/notInstalled.tssrc/client/linters/baseLinter.ts(viaPythonToolExecutionService)src/client/testing/common/services/discovery.tssrc/client/testing/common/runner.tssrc/client/testing/common/runner.ts(viaPythonToolExecutionService)src/client/common/installer/pipInstaller.tssrc/client/common/installer/productInstaller.tssrc/client/debugger/extension/adapter/factory.tssrc/client/interpreter/locators/services/workspaceVirtualEnvWatcherService.tssrc/client/interpreter/configuration/pythonPathUpdaterService.tssrc/client/interpreter/helpers.tssrc/client/interpreter/interpreterService.tssrc/client/interpreter/locators/services/windowsStoreInterpreter.tssrc/client/providers/importSortProvider.tssrc/client/providers/jediProxy.tssrc/client/refactor/proxy.ts