railwaycat / homebrew-emacsmacport

Emacs mac port formulae for the Homebrew package manager
BSD 2-Clause "Simplified" License
1.68k stars 126 forks source link

pyvenv-workon is not switching the virtualenv #340

Open pyjads opened 1 year ago

pyjads commented 1 year ago

I am using pyright lsp. I open a python file. I want to switch my virtual environment. I type , v w and select my virtual env. I execute my python file using , c c. However, the base python env is chosen instead of the selected virtualenv. How can I fix this? I have tried restarting lsp but it doesn't work.

Also, eshell expects venv file in the project root directory. Why both are using different venv.