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
-
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
-
Start Positron and wait for interpreter discovery to finish.
-
Open the console session picker.
-
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.
Positron searches
/opt/pythonfor 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 thejslocator.Steps to reproduce
Install a base Python at
/opt/python/3.12.13/bin/pythonon 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.13Start Positron and wait for interpreter discovery to finish.
Open the console session picker.
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.