Repository navigation
Native Environment Locator fails to register Miniforge/Conda interpreter, while JS Locator works #26057
Agent suggestions
Public previewDescription
Native Environment Locator fails to register Miniforge/Conda interpreter, while JS Locator works
(written and summarized by AI)
Environment
VS Code
Version: 1.130.0 (x64)
Commit: 1b6a188127eeaf9194f945eb6eb89a657e93c54c
Extensions
ms-python.python@2026.4.0
ms-python.vscode-pylance@2026.3.1
ms-python.debugpy@2026.6.0
OS
Windows 11
Conda Distribution
Miniforge
Installation Path
C:\ProgramData\miniforge3
Description
The Python extension fails to discover/register Python interpreters when the Native Environment Locator is enabled.
The interpreter appears to be detected internally according to the Python Environments logs, but the VS Code UI remains stuck on "Select Interpreter" and Python files cannot be run through the extension.
Switching the locator from Native to JS immediately resolves the problem.
Expected Behavior
VS Code should discover, register, and allow selection of the Conda/Miniforge interpreter.
Actual Behavior
- Status bar continues to show:
Select Interpreter
- Python files cannot be run via the Python extension.
- Interpreter selection UI does not properly register available interpreters.
- Python Environments logs repeatedly report autoselection failures.
Verified Working Components
The Conda installation itself appears healthy.
Python executable
where pythonreturns
C:\ProgramData\miniforge3\python.exe
Python version
python --versionreturns
Python 3.12.8
Running Python scripts
python test.pyworks correctly.
A test script containing:
import sys
print(sys.executable)prints:
C:\ProgramData\miniforge3\python.exe
Conda configuration
conda info --basereturns
C:\ProgramData\miniforge3
conda env listshows
base * C:\ProgramData\miniforge3
Relevant Log Output
The Native Locator appears to discover the interpreter successfully:
[info] Active interpreter [C:\Users\<user>\Projects\<workspace>]:
C:\ProgramData\miniforge3\python.exe
However, the UI still displays:
Select Interpreter
and no usable interpreter becomes available.
Repeated errors include:
[error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute.
followed by:
[error] Command failed: python -c "import sys;print(sys.executable)"
Der Befehl "python" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Additional repeated errors:
[error] Unable to find workspace for given file
Suspicious Discovery Attempts
The Native Locator appears to attempt Conda discovery against locations that are not Conda installations:
~\.conda\Scripts\conda.exe info --json
~\.condarc\Scripts\conda.exe info --json
~\.condarc.bak\Scripts\conda.exe info --json
.condarc and .condarc.bak are configuration files and not Conda installations.
This behavior seems suspicious and may be related to the failed environment registration.
Conda History
The system previously had a non-standard Conda configuration:
root_prefix: C:\Users\<user>\.condaThis setting was removed.
After correction:
conda info --basereturns
C:\ProgramData\miniforge3
and
conda env listshows
base * C:\ProgramData\miniforge3
The issue persists despite the corrected Conda configuration.
Workaround
Changing the Environment Locator from Native to JS immediately resolves the issue.
After switching to JS Locator:
- Interpreter discovery works normally.
- The interpreter becomes selectable.
- The status bar updates correctly.
- Python files execute normally.
Reproduction
- Use Miniforge installed in:
C:\ProgramData\miniforge3
- Enable the Native Environment Locator.
- Reload VS Code.
- Observe that logs report an active interpreter:
C:\ProgramData\miniforge3\python.exe
- Status bar remains:
Select Interpreter
- Switch Environment Locator to JS.
- Reload VS Code.
- Interpreter discovery and selection work immediately.
Summary
The Native Locator appears capable of discovering the interpreter but fails to properly register or expose it to the VS Code UI. The JS Locator succeeds on the same machine using the same Conda installation and interpreter. This suggests a bug or edge case in the Native Environment Locator implementation.
Activity
eleanorjboyd commentedon Aug 18, 2026
Thanks for the detailed report! Could you please provide:
Conda environment manager found at:line.python.condaPathto your Miniforge Conda executable fixes the issue.This will help us determine whether the failure is in Conda-manager selection or the separate interpreter autoselection path.
written by my agent
eleanorjboyd commentedon Sep 23, 2026
🤖 Thanks for the detailed report. To distinguish native Conda-manager selection from the separate interpreter-autoselection failure, could you provide the full native locator logs, including every
Conda environment manager found at:line, and confirm whether settingpython.condaPathtoC:\ProgramData\miniforge3\Scripts\conda.exechanges the behavior? Issues markedinfo-neededautomatically close after 30 days without a reply.