Skip to content

python: standalone interpreters in /opt/python are labeled "Unknown" instead of "Global" #15710

Description

@austin3dickey

Positron searches /opt/python for interpreters, because that's the recommended Python location on Workbench. Any standalone/base interpreters in there show up in the interpreter picker with the source "Unknown", but the expected source is "Global". This was reported before as #6270 and closed, but I think it was only fixed for the js locator.

Steps to reproduce

  1. Install a base Python at /opt/python/3.12.13/bin/python on macOS or Linux. It must be a base install and not a virtual environment. Move it into place rather than symlink it:

    mkdir -p /tmp/pystage
    UV_PYTHON_INSTALL_DIR=/tmp/pystage uv python install 3.12.13
    sudo mv /tmp/pystage/cpython-3.12.13-* /opt/python/3.12.13
  2. Start Positron and wait for interpreter discovery to finish.

  3. Open the console session picker.

  4. The interpreter shows as Python 3.12.13 (Unknown), under an "Unknown" heading.

Expected or desired behavior

The interpreter shows as Python 3.14.5 (Global), under a "Global" heading.

Impact

An unknown kind sorts last in the recommendation ranking, so these interpreters sink to the bottom of the picker. This might also affect how these interpreters are used when creating virtual environments or the new health check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions