Skip to content

Python version for Conda environments without Python contains incorrect information #20110

Description

Create a conda env without Python
The version information returned is invalid {"major":-1,"minor":-1,"patch":-1}

See below
Screen Shot 2022-10-28 at 21 17 37

This causes issues in Jupuyter extesnion as we display messages based on the version of the python environment, and -1 isn't a valid version number.
Ideally it should be undefined

I would setting the whole version property to be undefined as -1 is not a valid version.
Or have a seperate type for Non-Python environments. Such as conda environments that do not contain Python, as thats definitely possible, after all conda is not just for python, one can create environments for Java, Node.js, etc with Conda

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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 onverifiedVerification succeeded

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions