Skip to content

Change venvFolders to no longer be anchored to the user's home directory #1479

Closed as not planned

Description

We discovered during our bug bash that venvFolders exists but isn't documented. Either we leave it, document it, and potentially not make (at least) our pyenv support depend on .pyenv being in it, or we remove the setting and use the documented functionality of pyenv directly.

Activity

  1. changed the title [-]Decide about venvFolders[/-] [+]Create the venvPaths settings to merge venvFolders and venvPath[/+] on May 23, 2018
  2. brettcannon commented on May 23, 2018

    @brettcannon
    MemberAuthor
    1. Make pyenv and direnv support not rely on venvFolders
    2. Create venvPaths which is an array of directories which contain virtual environments
    3. Deprecate venvFolders and venvPath
    4. Make sure environments list gets updated when settings change
  3. removed this from the June 2018 milestone on Jun 4, 2018
  4. brettcannon commented on Jul 13, 2018

    @brettcannon
    MemberAuthor

    #2142 is a motivator for venvPaths available.

  5. brettcannon commented on Jul 13, 2018

    @brettcannon
    MemberAuthor

    We may want to consider skipping step 2 and modifying step 3 to only worry about venvPath as the naming of venvFolders makes a little bit more sense in isolation then venvPaths.

  6. 17 remaining items

  7. leifwalsh commented on Apr 19, 2022

    @leifwalsh

    What's the current status of this? venvFolders and venvPath still exist, and are inconsistently documented:

    I thought the original plan, to make venvPaths an array of entries like venvPath works today, and to get rid of venvFolders, made sense. It's the least surprising (can be relative to ${workspaceFolder} or not), and supporting multiple entries makes it work with many tools, other filesystems mounted outside one's home directory or project root, etc. It could be overridden in .code-workspace or settings.json files for projects to provide good defaults in source.

    Did this ticket just get forgotten about? It would very much improve my company's use cases to see this happen.

  8. removed their assignment
    on May 12, 2022
  9. Dris101 commented on Oct 8, 2022

    @Dris101

    Just got caught out by this again! If using poetry, set python.venvPath to the output of poetry config virtualenvs.path (might need to change \ to / on Windows)

  10. thecircleoflifefree commented on Nov 6, 2022

    @thecircleoflifefree

    Any rule of thumb of how I should be using one or the other and both?

  11. brettcannon commented on Dec 8, 2022

    @brettcannon
    MemberAuthor

    Did this ticket just get forgotten about?

    Honestly, yes. We have been very focused in the interim time this issue was opened by completely rewriting the environment discovery code, iterating on the quick pick menu, and then getting an extension API for other extensions to use. Now that's all finished, we can look to try and pick this up in 2023.

  12. leifwalsh commented on Dec 8, 2022

    @leifwalsh

    Cool, thank you!

  13. removed their assignment
    on Oct 26, 2023
  14. rhewy commented on Jan 4, 2024

    @rhewy

    Should venvPaths exist in version v2023.14.0 of the python extension?

  15. brettcannon commented on Jan 8, 2024

    @brettcannon
    MemberAuthor

    Should venvPaths exist in version v2023.14.0 of the python extension?

    No; see https://github.com/microsoft/vscode-python/blob/main/package.json for all the settings we support.

  16. raffaelemancuso commented on May 23, 2025

    @raffaelemancuso

    So, what do we do in the meantime?

    Which one of the two should we set?

  17. raffaelemancuso commented on May 26, 2025

    @raffaelemancuso

    Just to be clear, python.venvPath and python.venvFolders are options of the Python plugin and thus are ignored by the Jupyter plugin, right?

  18. eleanorjboyd commented on Dec 8, 2025

    @eleanorjboyd
    Member

    moving to:

    python-env.workspaceSearchPaths and python-env.globalSearchPaths via the python envs extension. tracking documentation add here: microsoft/vscode-python-environments#1041

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-environmentsFeatures relating to handling interpreter environmentsdebtCode quality issues

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions