Skip to content

Environment name returned for Conda environments that do not have a name but only have a Path #20069

@DonJayamanne

Description

@DonJayamanne

When creating Conda enviornments using the Python Exension UI, the conda environment does not have a name.
However the Python extesnion API returns a name for the environment when it should not. In the past Python exension did not do this.
This breaks the code that is used to activate conda environments and install Python packages in Jupyter extension.

here's the work flow:

  • Create conda env using Python extension
  • The folder is .conda
  • The environment msut be activated using the path and not a name as there's no conda enviornent named .conda
  • The Jupyter extension now calls the Python Ext API to get the details of the Python exesnion API
    • The Python extension returns the details and the name of the envionment is .conda
  • The jupyter extension now uses this to install python packages and uses the -n argument for conda and this falls over.

If you were to install the older version of the Python extnesion, now things work.
I.e. this is a breaking change in the Python exension

Metadata

Metadata

Assignees

Labels

area-environmentsFeatures relating to handling interpreter environmentsauthor-verification-requestedIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable bugneeds PRReady to be worked onregressionBug didn't exist in a previous releaseverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions