Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Provide single source for interpreter configuration information #1340

@MikhailArkhipov

Description

@MikhailArkhipov

Currently InterpreterConfiguration is fully populated in tests while being almost empty in live product since paths are calculated. Thus some code in PythonLibraryPath only works in tests.

Persistent storage needs to know module location in order to calculate unique names with versions. We should have something like IPythonConfigurationService which then can be used to obtain actual data.

We can either completely eliminate InterpreterConfiguration and have everything rely on the interface and mock it in tests or remove some unused fields from the struct and have new service return InterpreterConfiguration properly populated.

The service can also handle changes to the configuration after pip install or user updates to the client app settings.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions