auto-virtualenv icon indicating copy to clipboard operation
auto-virtualenv copied to clipboard

Custom resolve function?

Open gitonthescene opened this issue 3 years ago • 3 comments

It might be nice to allow users to override how virtualenv names are resolved. This would make it easier to adapt to find the virtualenv that say poetry or nox use.

gitonthescene avatar Dec 04 '21 14:12 gitonthescene

For now just running the following in the shell seems to work to sync up the poetry environment with auto-virtualenv:

$ ln -s $(poetry env info -p) .venv

gitonthescene avatar Dec 05 '21 00:12 gitonthescene

Thanks for the tip @gitonthescene ! I found that I also need to restart the server everytime I switch projects using lsp-workspace-restart before it picks up the new virtual envionrment, has anyone found a way around this?

amrawadk avatar Jan 28 '22 06:01 amrawadk

@AmrAwadK I use a projectile hook to switch virtualenv

marcwebbie avatar Jul 13 '22 08:07 marcwebbie