zed
zed copied to clipboard
Activated python venv doesn't apply to files in subdirectories
trafficstars
Summary
Description
I've activated a python venv in folder a via the button on status bar, but when I open file in subfolder a/b/c.py, the venv isn't applied (to terminal and lsp) to this file.
Steps to reproduce:
- In folder a, do
poetry initwith minimal dependencies poetry install --no-rootmkdir b, touchb/c.py- restart Zed
- open folder a, a poetry venv should by activated by default (if not, do it via button on status bar)
- open file b/c.py
Expected Behavior: When open terminal in file b/c.py:
- typing
echo $PATHshould include the poetry venv path - typing
which pythonshould points to the python instance in the venv path Actual Behavior: - Doesn't include poetry venv
- Points to system's python instance (or in my case, pyenv instance)
Zed Version and System Specs
Zed: v0.188.5 (Zed) OS: Linux Wayland endeavouros unknown Memory: 7.6 GiB Architecture: x86_64 GPU: NVIDIA GeForce GTX 1050 || NVIDIA || 570.153.02