Title: `Select Interpreter` failed to find 64-bit python installation due to wrong `IInterpreterLocatorService` parameter. · Issue #414 · microsoft/vscode-python · GitHub
Open Graph Title: `Select Interpreter` failed to find 64-bit python installation due to wrong `IInterpreterLocatorService` parameter. · Issue #414 · microsoft/vscode-python
X Title: `Select Interpreter` failed to find 64-bit python installation due to wrong `IInterpreterLocatorService` parameter. · Issue #414 · microsoft/vscode-python
Description: Environment data VS Code version: 1.18.1 Python Extension version: 0.8.0 Python Version: python 3.6.3 64-bit & python 2.7.14 64-bit OS and version: Windows 10.0.16299.64 Actual behavior Expected behavior Steps to reproduce: Here is my ex...
Open Graph Description: Environment data VS Code version: 1.18.1 Python Extension version: 0.8.0 Python Version: python 3.6.3 64-bit & python 2.7.14 64-bit OS and version: Windows 10.0.16299.64 Actual behavior Expected be...
X Description: Environment data VS Code version: 1.18.1 Python Extension version: 0.8.0 Python Version: python 3.6.3 64-bit & python 2.7.14 64-bit OS and version: Windows 10.0.16299.64 Actual behavior Expecte...
Opengraph URL: https://github.com/microsoft/vscode-python/issues/414
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`Select Interpreter` failed to find 64-bit python installation due to wrong `IInterpreterLocatorService` parameter.","articleBody":"## Environment data\r\nVS Code version: 1.18.1\r\nPython Extension version: 0.8.0\r\nPython Version: python 3.6.3 64-bit & python 2.7.14 64-bit\r\nOS and version: Windows 10.0.16299.64\r\n\r\n## Actual behavior\r\n\r\n\r\n## Expected behavior\r\n\r\n\r\n## Steps to reproduce: \r\nHere is my exploration by debugging this extension myself:\r\nThe extension cannot find 64-bit python installation via `WindowsRegistryService` class which implements interface `IInterpreterLocatorService`\r\nthe code is here: [windowsRegistryService.ts](https://github.com/Microsoft/vscode-python/blob/master/src/client/interpreter/locators/services/windowsRegistryService.ts#L28)\r\nIn short, this class find python installation via predefined registry path, it does resolved the correct registry path: `\\Software\\Python\\PythonCore\\2.7\\InstallPath` and `\\Software\\Python\\PythonCore\\2.7\\InstallPath`, but due to the `is64Bit` member of the class set to `false` in constructor, it cannot find anything in the 32-bit(?) registry.\r\nAfter manualy changing `this.is64Bit` member of `WindowsRegistryService` to `true` in the debugger, the class can correctly find both of the 2 python interpreters, and tagged it as `64-bit`.\r\n\r\nLooking at the constructor, the `is64Bit` parameter is injected by some other mechanism, which I cannot understand by looking at the code, can anyone explain it?\r\n\r\n\r\n\r\nfor now, the interpreter locator falls back to find python via PATH and returns only 1 python.exe\r\n","author":{"url":"https://github.com/MichaelSuen-thePointer","@type":"Person","name":"MichaelSuen-thePointer"},"datePublished":"2017-12-13T14:50:37Z","url":"https://github.com/microsoft/vscode-python/issues/414"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:20417e98-ddb8-c0e4-3202-6c5f61e22ed0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E678:2DC43A:2C0F81:39F3F7:6AFE5EE5 |
| html-safe-nonce | 449de444f4c7a0f99ab96902b4785264d88d6e092d037a3246751be4e3d927e1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjc4OjJEQzQzQToyQzBGODE6MzlGM0Y3OjZBRkU1RUU1IiwidmlzaXRvcl9pZCI6IjU2ODY5MzUzMDkwMjM4NjI1MDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7608c59a6ef5783f2c0904f66e0bfdaf13118e089318575630d6d7e5e45ebe00 |
| hovercard-subject-tag | issue:281775974 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Microsoft/vscode-python/414/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8b8bd9ed065c87967971b30deb35208e3bda3fae60634820c1b7da5d81cbb878/microsoft/vscode-python/issues/414 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8b8bd9ed065c87967971b30deb35208e3bda3fae60634820c1b7da5d81cbb878/microsoft/vscode-python/issues/414 |
| og:image:alt | Environment data VS Code version: 1.18.1 Python Extension version: 0.8.0 Python Version: python 3.6.3 64-bit & python 2.7.14 64-bit OS and version: Windows 10.0.16299.64 Actual behavior Expected be... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MichaelSuen-thePointer |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-python git https://github.com/microsoft/vscode-python.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 106462765 |
| octolytics-dimension-repository_nwo | microsoft/vscode-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 49946255 |
| octolytics-dimension-repository_parent_nwo | DonJayamanne/pythonVSCode |
| octolytics-dimension-repository_network_root_id | 49946255 |
| octolytics-dimension-repository_network_root_nwo | DonJayamanne/pythonVSCode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width