Title: Run Selection/Line in Python Terminal does not work with empty spaces · Issue #1207 · microsoft/vscode-python · GitHub
Open Graph Title: Run Selection/Line in Python Terminal does not work with empty spaces · Issue #1207 · microsoft/vscode-python
X Title: Run Selection/Line in Python Terminal does not work with empty spaces · Issue #1207 · microsoft/vscode-python
Description: Environment data VS Code version: 1.21.1 Extension version (available under the Extensions sidebar): 2018.2.1 OS and version: Ubuntu 16.04 Python version (& distribution if applicable, e.g. Anaconda): 3.6 Type of virtual environment used...
Open Graph Description: Environment data VS Code version: 1.21.1 Extension version (available under the Extensions sidebar): 2018.2.1 OS and version: Ubuntu 16.04 Python version (& distribution if applicable, e.g. Anacond...
X Description: Environment data VS Code version: 1.21.1 Extension version (available under the Extensions sidebar): 2018.2.1 OS and version: Ubuntu 16.04 Python version (& distribution if applicable, e.g. Ana...
Opengraph URL: https://github.com/microsoft/vscode-python/issues/1207
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Run Selection/Line in Python Terminal does not work with empty spaces","articleBody":"## Environment data\r\n\r\n- VS Code version: 1.21.1\r\n- Extension version (available under the Extensions sidebar): 2018.2.1\r\n- OS and version: Ubuntu 16.04\r\n- Python version (& distribution if applicable, e.g. Anaconda): 3.6\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A\r\n- Relevant/affected Python packages and their versions: -\r\n\r\n## Actual behavior\r\nSelecting\r\n```\r\nif True:\r\n #do some stuff\r\n\r\n #do more stuff\r\n print(\"should print\")\r\n```\r\nand running \"Run Selection/Line in Python Terminal\" [ / python.execSelectionInTerminal ] produces an error.\r\n\r\n\r\n## Expected behavior\r\nConsole should print\r\n\r\n## Logs\r\n```\r\n>>> if True:\r\n... #do some stuff\r\n...\r\n File \"\u003cstdin>\", line 3\r\n\r\n ^\r\nIndentationError: expected an indented block\r\n>>> #do more stuff\r\n... print(\"should print\")\r\n File \"\u003cstdin>\", line 2\r\n print(\"should print\")\r\n ^\r\nIndentationError: unexpected indent\r\n```","author":{"url":"https://github.com/mnarodovitch","@type":"Person","name":"mnarodovitch"},"datePublished":"2018-03-27T09:54:13Z","url":"https://github.com/microsoft/vscode-python/issues/1207"}
| 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:e3dc3b96-9b6b-f7cd-2dd9-f49cf0d634d2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B09E:22D9F2:34F0D1:47D37B:6AFE527F |
| html-safe-nonce | ff6af345e6bbb4e18e06e83b9927630435b78cf025138a1ff4dacde3c57edb36 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDlFOjIyRDlGMjozNEYwRDE6NDdEMzdCOjZBRkU1MjdGIiwidmlzaXRvcl9pZCI6Ijg3MzI2NTA3MzQ5Mjg5NDE2OTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ffc19bb82ddf6928d3a4b924a9a0c560ec5a9e6312bd9305896b295a32b9a1fc |
| hovercard-subject-tag | issue:308899400 |
| 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/1207/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1e2efad34fa9fba98f4586fe3daa13b1a429e40bfc7e1e9eeb2763c1803d45ec/microsoft/vscode-python/issues/1207 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1e2efad34fa9fba98f4586fe3daa13b1a429e40bfc7e1e9eeb2763c1803d45ec/microsoft/vscode-python/issues/1207 |
| og:image:alt | Environment data VS Code version: 1.21.1 Extension version (available under the Extensions sidebar): 2018.2.1 OS and version: Ubuntu 16.04 Python version (& distribution if applicable, e.g. Anacond... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mnarodovitch |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3ad2b58e42f481583284b895305360b61b0223636c9dde6d696b575347163a26 |
| 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 | 8df44dbe1c8091b38c3e0165c05a1e5c1563762e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width