zed icon indicating copy to clipboard operation
zed copied to clipboard

Activated python venv doesn't apply to files in subdirectories

Open TroySigX opened this issue 5 months ago • 2 comments
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:

  1. In folder a, do poetry init with minimal dependencies
  2. poetry install --no-root
  3. mkdir b, touch b/c.py
  4. restart Zed
  5. open folder a, a poetry venv should by activated by default (if not, do it via button on status bar)
  6. open file b/c.py

Expected Behavior: When open terminal in file b/c.py:

  1. typing echo $PATH should include the poetry venv path
  2. typing which python should points to the python instance in the venv path Actual Behavior:
  3. Doesn't include poetry venv
  4. 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

TroySigX avatar Jun 03 '25 15:06 TroySigX