Summary
I see wrong version of python from venv when I use uv.
Description:
When using the uv package manager to create and manage a Python virtual environment, Zed incorrectly identifies the Python version within the environment. While the command line and uv run correctly utilize the Python version specified in the virtual environment (Python 3.13.2 in this case), Zed displays Python 2.7.18 as the active version.
Steps to Reproduce:
I start a new project using uv. It is reproducable in CLI and ZED window as this:
$ mkdir zed-test && cd zed-test
$ uv init # Initialize a new project using
Initialized project `zed-test`
$ uv run hello.py # Run generated example script
Using CPython 3.13.2 interpreter at: /usr/bin/python3.13
Creating virtual environment at: .venv
Hello from zed-test!
$ ls .venv/bin/python*
.venv/bin/python@ .venv/bin/python3@ .venv/bin/python3.13@
$ ./.venv/bin/python -V
Python 3.13.2
$ zed .
$ uv -V
uv 0.5.5
$ zed -v
Zed 0.179.2 f6f061838d7180aec4510a1fa4c9e8659a6c3003 – ~/.local/zed.app/libexec/zed-editor
But in zed I see in the right bottom corner Python 2.7.18 (Venv). When I click it there is a menu and only option for Venv is 2.7.18 which is not in venv. Path of venv is correct: ./.venv/bin/python
Expected Behavior:
Zed should correctly detect and display the Python version from the uv-managed virtual environment, which is Python 3.13.2 in this case. The virtual environment options in the Python version selector should also reflect the actual Python versions present within the .venv directory.
Additional Information:
ZED Version: 0.179.2
OS: Linux (Fedora 41)
UV Version: 0.5.5
Python Version (in venv): 3.13.2
Path to Virtual Environment (as reported by Zed): ./.venv/bin/python (This path is correct, but the version detected is wrong)
Zed Version and System Specs
Zed: v0.179.2 (Zed)
OS: Linux Wayland fedora 41
Memory: 15.3 GiB
Architecture: x86_64
GPU: Intel(R) Iris(R) Xe Graphics (TGL GT2) || Intel open-source Mesa driver || Mesa 25.0.1
Summary
I see wrong version of python from venv when I use uv.
Description:
When using the uv package manager to create and manage a Python virtual environment, Zed incorrectly identifies the Python version within the environment. While the command line and uv run correctly utilize the Python version specified in the virtual environment (Python 3.13.2 in this case), Zed displays Python 2.7.18 as the active version.
Steps to Reproduce:
I start a new project using uv. It is reproducable in CLI and ZED window as this:
But in zed I see in the right bottom corner
Python 2.7.18 (Venv). When I click it there is a menu and only option for Venv is 2.7.18 which is not in venv. Path of venv is correct:./.venv/bin/pythonExpected Behavior:
Zed should correctly detect and display the Python version from the uv-managed virtual environment, which is Python 3.13.2 in this case. The virtual environment options in the Python version selector should also reflect the actual Python versions present within the .venv directory.
Additional Information:
Zed Version and System Specs
Zed: v0.179.2 (Zed)
OS: Linux Wayland fedora 41
Memory: 15.3 GiB
Architecture: x86_64
GPU: Intel(R) Iris(R) Xe Graphics (TGL GT2) || Intel open-source Mesa driver || Mesa 25.0.1