PythonEnvironments icon indicating copy to clipboard operation
PythonEnvironments copied to clipboard

The Prepare method of TPyLocalEnvironment allows invalid Distributions

Open peardox opened this issue 3 years ago • 1 comments

The JSON file provided as FilePath may contain invalid entries that don't point to files and directories on the target system.

When processing the individual entries Prepare's Anonymous method should verify the existance of the files and directories before adding the Distribution.

It is also possible to add the same entry multiple times resulting in more than one valid entry for a Distribution

peardox avatar Sep 11 '22 11:09 peardox

Distributions can be set statically. The environment where it was set might not contain the same settings as the target environment. We can't validate it on setting up step. However, we can validate it as we try to activate the environment.

lmbelo avatar Sep 11 '22 15:09 lmbelo