Skip to content

Native Locator does not return all windows store pythons #23462

@karthiknadig

Description

@karthiknadig

These are the pythons available:
image

It only reports the 3.12 from store. The other two global ones are not store pythons but python.org ones:

Content-Length: 94
Content-Type: application/vscode-jsonrpc; charset=utf-8

{"jsonrpc":"2.0","method":"log","params":{"message":"Starting Native Locator","level":"info"}}Content-Length: 331
Content-Type: application/vscode-jsonrpc; charset=utf-8

{"jsonrpc":"2.0","method":"pythonEnvironment","params":{"displayName":"Python 3.11 (64-bit)","name":null,"pythonExecutablePath":"C:\\Python311\\python.exe","category":"windowsRegistry","version":"3.11.9","envPath":"C:\\Python311\\","envManager":null,"pythonRunCommand":["C:\\Python311\\python.exe"],"projectPath":null,"arch":null}}Content-Length: 371
Content-Type: application/vscode-jsonrpc; charset=utf-8

{"jsonrpc":"2.0","method":"pythonEnvironment","params":{"displayName":"Python 3.7 (64-bit)","name":null,"pythonExecutablePath":"C:\\Program Files\\Python37\\python.exe","category":"windowsRegistry","version":"3.7.9","envPath":"C:\\Program Files\\Python37\\","envManager":null,"pythonRunCommand":["C:\\Program Files\\Python37\\python.exe"],"projectPath":null,"arch":null}}Content-Length: 586
Content-Type: application/vscode-jsonrpc; charset=utf-8

{"jsonrpc":"2.0","method":"pythonEnvironment","params":{"displayName":"Python 3.12","name":null,"pythonExecutablePath":"C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.12_3.12.1008.0_x64__qbz5n2kfra8p0\\python3.12.exe","category":"windowsRegistry","version":"3.12.3","envPath":"C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.12_3.12.1008.0_x64__qbz5n2kfra8p0","envManager":null,"pythonRunCommand":["C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.12_3.12.1008.0_x64__qbz5n2kfra8p0\\python3.12.exe"],"projectPath":null,"arch":null}}Content-Length: 501
Content-Type: application/vscode-jsonrpc; charset=utf-8

{"jsonrpc":"2.0","method":"pythonEnvironment","params":{"displayName":null,"name":"base","pythonExecutablePath":"C:\\ProgramData\\Miniconda3\\python.exe","category":"conda","version":"3.10.9","envPath":"C:\\ProgramData\\Miniconda3","envManager":{"executablePath":"C:\\ProgramData\\Miniconda3\\Scripts\\conda.exe","version":"23.1.0","tool":"conda"},"pythonRunCommand":["C:\\ProgramData\\Miniconda3\\Scripts\\conda.exe","run","-p","C:\\ProgramData\\Miniconda3","python"],"projectPath":null,"arch":null}}Content-Length: 151
Content-Type: application/vscode-jsonrpc; charset=utf-8

{"jsonrpc":"2.0","method":"envManager","params":{"executablePath":"C:\\ProgramData\\Miniconda3\\Scripts\\conda.exe","version":"23.1.0","tool":"conda"}}Content-Length: 542
Content-Type: application/vscode-jsonrpc; charset=utf-8

{"jsonrpc":"2.0","method":"pythonEnvironment","params":{"displayName":null,"name":".conda","pythonExecutablePath":"C:\\GIT\\test_environments\\env1\\.conda\\python.exe","category":"conda","version":"3.7.16","envPath":"C:\\GIT\\test_environments\\env1\\.conda","envManager":{"executablePath":"C:\\ProgramData\\Miniconda3\\Scripts\\conda.exe","version":"23.1.0","tool":"conda"},"pythonRunCommand":["C:\\ProgramData\\Miniconda3\\Scripts\\conda.exe","run","-p","C:\\GIT\\test_environments\\env1\\.conda","python"],"projectPath":null,"arch":null}}Content-Length: 546
Content-Type: application/vscode-jsonrpc; charset=utf-8

{"jsonrpc":"2.0","method":"pythonEnvironment","params":{"displayName":null,"name":".conda2","pythonExecutablePath":"C:\\GIT\\test_environments\\env1\\.conda2\\python.exe","category":"conda","version":"3.10.9","envPath":"C:\\GIT\\test_environments\\env1\\.conda2","envManager":{"executablePath":"C:\\ProgramData\\Miniconda3\\Scripts\\conda.exe","version":"23.1.0","tool":"conda"},"pythonRunCommand":["C:\\ProgramData\\Miniconda3\\Scripts\\conda.exe","run","-p","C:\\GIT\\test_environments\\env1\\.conda2","python"],"projectPath":null,"arch":null}}Content-Length: 547
Content-Type: application/vscode-jsonrpc; charset=utf-8

{"jsonrpc":"2.0","method":"pythonEnvironment","params":{"displayName":null,"name":".conda","pythonExecutablePath":"C:\\GIT\\LSP\\jedi-language-server\\.conda\\python.exe","category":"conda","version":"3.7.1","envPath":"C:\\GIT\\LSP\\jedi-language-server\\.conda","envManager":{"executablePath":"C:\\ProgramData\\Miniconda3\\Scripts\\conda.exe","version":"23.1.0","tool":"conda"},"pythonRunCommand":["C:\\ProgramData\\Miniconda3\\Scripts\\conda.exe","run","-p","C:\\GIT\\LSP\\jedi-language-server\\.conda","python"],"projectPath":null,"arch":null}}Content-Length: 527
Content-Type: application/vscode-jsonrpc; charset=utf-8

{"jsonrpc":"2.0","method":"pythonEnvironment","params":{"displayName":null,"name":".conda","pythonExecutablePath":"C:\\GIT\\demo\\demo_sample1\\.conda\\python.exe","category":"conda","version":"3.8.18","envPath":"C:\\GIT\\demo\\demo_sample1\\.conda","envManager":{"executablePath":"C:\\ProgramData\\Miniconda3\\Scripts\\conda.exe","version":"23.1.0","tool":"conda"},"pythonRunCommand":["C:\\ProgramData\\Miniconda3\\Scripts\\conda.exe","run","-p","C:\\GIT\\demo\\demo_sample1\\.conda","python"],"projectPath":null,"arch":null}}Content-Length: 542
Content-Type: application/vscode-jsonrpc; charset=utf-8

{"jsonrpc":"2.0","method":"pythonEnvironment","params":{"displayName":null,"name":"named1","pythonExecutablePath":"C:\\Users\\kanadig\\.conda\\envs\\named1\\python.exe","category":"conda","version":"3.12.0","envPath":"C:\\Users\\kanadig\\.conda\\envs\\named1","envManager":{"executablePath":"C:\\ProgramData\\Miniconda3\\Scripts\\conda.exe","version":"23.1.0","tool":"conda"},"pythonRunCommand":["C:\\ProgramData\\Miniconda3\\Scripts\\conda.exe","run","-p","C:\\Users\\kanadig\\.conda\\envs\\named1","python"],"projectPath":null,"arch":null}}Content-Length: 383
Content-Type: application/vscode-jsonrpc; charset=utf-8

{"jsonrpc":"2.0","method":"pythonEnvironment","params":{"displayName":null,"name":null,"pythonExecutablePath":"c:\\GIT\\s p\\vscode-python\\.venv\\Scripts\\python.exe","category":"system","version":"3.8.10","envPath":"c:\\GIT\\s p\\vscode-python\\.venv","envManager":null,"pythonRunCommand":["c:\\GIT\\s p\\vscode-python\\.venv\\Scripts\\python.exe"],"projectPath":null,"arch":null}}Content-Length: 107      
Content-Type: application/vscode-jsonrpc; charset=utf-8

{"jsonrpc":"2.0","method":"log","params":{"message":"Native Locator took 19 milliseconds.","level":"info"}}Content-Length: 47
Content-Type: application/vscode-jsonrpc; charset=utf-8

{"jsonrpc":"2.0","method":"exit","params":null}

Metadata

Metadata

Labels

area-native-locatorIssues with Rust based python locatorbugIssue identified by VS Code Team member as probable bugneeds PRReady to be worked on

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions