Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pick_env() does not detect .venv #51

Open
Mitutoyum opened this issue Feb 18, 2025 · 1 comment
Open

pick_env() does not detect .venv #51

Mitutoyum opened this issue Feb 18, 2025 · 1 comment

Comments

@Mitutoyum
Copy link

No description provided.

@plaffitt
Copy link

plaffitt commented Feb 28, 2025

I have the same issue

$ nvim --version
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1703358377

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

And I use lunarvim.

EDIT: After some debugging, it is because of the read_venv_name_in_project function and the line:match('^prompt%s*=%s*(.*)') condition. Here is how look my pyenv.cfg (I use venv module, is there other modules that handle virtual envs differently maybe ?).

$ cat /home/paul/<REDACTED>/.venv/pyvenv.cfg
home = /home/paul/<REDACTED>/.venv/bin
include-system-site-packages = false
version = 3.10.16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants