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:911380a2-1a08-3d66-046a-b8a7ad5fa8cb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E1B2:9237D:DB8B0:11E748:6AFE3354 |
| html-safe-nonce | f6f524a0fe2adcc38ddbe7bdbc5446dde2a7894f48f62900dac16c191b3adcf6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUIyOjkyMzdEOkRCOEIwOjExRTc0ODo2QUZFMzM1NCIsInZpc2l0b3JfaWQiOiI0OTc3MjY4NjI4NTI2MDg0OTQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ff13302bb0bb8d4cc0493f4aeaab0e532ef99403c3c27d3663fa4ef0b509fbed |
| 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 | d70e31220a67f6376c108d2416fa8e7df854c1065b1672ab7a88ab6dc3a809e2 |
| 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 | ccb88d9c92abe69245b429398c8a57ae87070c7c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width