Skip to content

Also show name for conda environments created in the workspace #21770

Closed

Description

I have two workspace conda environments namely .conda and .condaTesting as well as a number of virtual environments named .venv, etc..

As you can see from the image, the names of the workspace level conda enviornments are wrong.
As a result its very confusing to tell what conda env has been selected.
Screenshot 2023-08-06 at 19 20 48

Activity

  1. added
    bug
    on Aug 6, 2023
  2. added
    triage-needed
    on Aug 6, 2023
  3. myabanky commented on Aug 7, 2023

    @myabanky
  4. DonJayamanne commented on Aug 7, 2023

    @DonJayamanne
    Author
  5. changed the title [-]Incorrect display name for workspace conda environment, always displays the name as `conda`[/-] on Aug 9, 2023
  6. added
    debt
    area-environments
    needs PR
    and removed
    bug
    triage-needed
    on Aug 9, 2023
  7. removed their assignment
    on Aug 9, 2023
  8. karrtikr commented on Aug 9, 2023

    @karrtikr

    At least when displaying it, we can show the name. Even though while activating or using the environments, these have no names.

    Marking as a good first issue, code to be modified here:

    function buildEnvDisplayString(env: PythonEnvInfo, getAllDetails = false): string {

    if env.searchLocation exists and it is a conda environment, create display name using env name.

  9. 11 remaining items

  10. PopoDev commented on Dec 27, 2023

    @PopoDev

    Hi Kartik Raj (@karrtikr), I'd like to give it a try!

    If I understood correctly conda environments don't have an env.name. Can we create the display name using the basename of env.location ?

  11. added a commit that references this issue on Jan 19, 2024
    1eaf5a3
  12. removed
    needs PR
    on Jan 19, 2024
  13. karrtikr commented on Jan 19, 2024

    @karrtikr

    Fix should be out in the pre-release version of the extension in a day, use the following to try it out:

    image

  14. added this to the milestone on Jan 19, 2024
  15. added
    verification-needed
    on Jan 19, 2024
  16. PopoDev commented on Jan 20, 2024

    @PopoDev

    The fix seems to work as expected. It shows the names of the workspace level conda environments, e.g .conda, .condaTesting and .condaWorkspace.

    validate-show-conda-env-names

  17. PopoDev commented on Jan 20, 2024

    @PopoDev

    Also the new Create Environment in Select Interpreter looks neat !

  18. jrieken commented on Jan 25, 2024

    @jrieken

    Adding verified based on #21770 (comment)

  19. locked as resolved and limited conversation to collaborators on Mar 4, 2024
  20. added 2 commits that reference this issue on Mar 28, 2024
    3e611b8
    9b4975a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-environmentsfeature-requestgood first issueverification-neededverified

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions