Skip to content

Selecting a uv .venv/bin/python as active interpreter doesn't enable IDE feature #25068

Open
@konstin

Description

@konstin

Hi, I'm writing this to upstream a uv issue report (astral-sh/uv#9637). I hope this isn't a duplicate, I couldn't find any existing upstream report, and sorry for misusing the feature request page, it didn't fit the usual bug report flow. This report has some untypical characteristics:

The users report that when selecting a venv from python -m venv as active interpreter, VS code reports it has full IDE support. When they do the same with the uv created venv, VS Code does not activate IDE features such as Intellisense, type hints and Mypy. The workaround is to enter the absolute path to the venv instead, which seems to make VS Code recognize the extension.

Does the VS Code Python team know what may cause, and what we could do on the uv or VS code side to fix this? We're interested in a great VS Code experience for our users, but we're unfortunately out of ideas on the issue.

CC @karthiknadig

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityinfo-neededIssue requires more information from postertriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions