Closed
Description
Previously raised for Jedi project but deemed irrelevant at their level.
When using Virtualenvwrapper, or just for convenience keeping all the virtual Python environments in one directory, it's not possible to
to use user home directory references in pylsp.plugins.jedi.environment
. E.g. ~/.virtualenvs/myenv1
.
Neither python-lsp-server nor Jedi don't expand ~
.
This is a small thing but prevents effective sharing of dev environments between users (because the username would have to be explicitly hardcoded here).
I suggest using os.path.expanduser
in this function:
python-lsp-server/pylsp/workspace.py
Lines 380 to 401 in 297099c