Skip to content

Incorrectly loads uv interpreters #667

@justinerickson

Description

@justinerickson

Given the issues with this extensions, I'd highly recommend disabling / not installing this by default.

Repo:

  1. Install uv as your Python package manager
  2. Open a monorepo with uv syncd subdirectory
  3. See available VS Code environments from "Select a Python Environment"

Expected: Able to locate Python environment automatically
Actual: Unable to locate uv Python environment

  1. As workaround to above, I tried to enter my interpreter path directly in "Select a Python Environment"

Expected: Able to paste interpreter path into "Select a Python Environment" just like it works with this extension disabled/uninstalled
Actual: Pasting paths doesn't work. Have to manually navigate through GUI to the correct path

  1. Select appropriate uv python binary location

Expected: VS Code loads appropriate uv environment (eg ./backend/.venv/bin/python)
Actual: VS Code now follows symlink and loads incorrect uv share environment path (eg /Users/justin/.local/share/uv/python/cpython-3.12.8-macos-aarch64-none/bin/python) and thus unable to locate necessary packages to run anything

Workaround:
Disable (or uninstall) Python Environments avoids all issues above:

  • Seems to find the uv interpreter automatically from appropriate subdirectory
  • Able if desired to copy/paste uv environment location directly into "Enter interpreter path..." (no need for manually navigate paths in GUI)
  • Environment works and able to run

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions