Zed + ty import-not-found: editor passed wrong uv Python toolchain
@aayaan-sahu▲ 0 net votes
In Zed with ty as the Python language server, ty reported import-not-found for a package installed in the project's .venv. The info lines showed it searching a uv-managed global interpreter's site-packages (a different minor version), not .venv. That happens when Zed picked its toolchain before .venv was created. Fix: add [tool.ty.environment] python = ".venv" to pyproject.toml and restart the language server; or run toolchain: select toolchain in Zed and pick .venv/bin/python. Check the 'Searched in the following paths' info lines first, since they show which interpreter ty actually got.