question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:19
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

8reactions
claytonlemonscommented, Feb 21, 2020

I ran across this issue because I have the following use case:

  • rootWorkspaceDir (not relative to homeDir)
    • subProject1Dir
      • venvDIr
    • subProject2Dir
      • venvDIr

Making venvFolders not relative to the user’s home dir would allow me to specify each subproject once and easily switch between the corresponding environments as I switch between projects. The current workaround is to update venvPath or pythonPath each time I switch.

6reactions
leifwalshcommented, Apr 19, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I set up a virtual environment for Python in Visual ...
Python: Venv Folders Folders in your home directory to look into for virtual environments (supports pyenv, direnv and virtualenvwrapper by default).
Read more >
Settings Reference for Python - Visual Studio Code
Paths of directories or files that should be included in analysis. If no paths are specified, Pylance defaults to the directory that contains...
Read more >
Python Virtual Environments: A Primer
In this tutorial, you'll learn how to work with Python's venv module to create and manage separate virtual environments for your Python ...
Read more >
Local development environment for OpenShift - Redpill Linpro
Using this setup, changes to the application ( wsgi.py ) are directly visible. ... There is also no need to copy the .git...
Read more >
co2mpas - PyPI
DO NOT MODIFY !!!!! used by Windows StartMenu shortcuts. bash-console.bat ## Open a python+cygwin enabled `bash` console. CO2MPAS/ ## User's HOME directory ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found