René's URL Explorer Experiment


Title: Run Selection/Line in Python Terminal gives syntax errors when running selection with function def or other blocks · Issue #259 · microsoft/vscode-python · GitHub

Open Graph Title: Run Selection/Line in Python Terminal gives syntax errors when running selection with function def or other blocks · Issue #259 · microsoft/vscode-python

X Title: Run Selection/Line in Python Terminal gives syntax errors when running selection with function def or other blocks · Issue #259 · microsoft/vscode-python

Description: Environment data VS Code version: 1.18.0 Python Extension version: 0.8.0 Python Version: 3.6.2 :: Continuum Analytics, Inc./ 2.7.13 :: Anaconda 4.4.0 (x86_64) OS and version: OSX El Capitan 10.11.6 Actual behavior Tries to execute a bloc...

Open Graph Description: Environment data VS Code version: 1.18.0 Python Extension version: 0.8.0 Python Version: 3.6.2 :: Continuum Analytics, Inc./ 2.7.13 :: Anaconda 4.4.0 (x86_64) OS and version: OSX El Capitan 10.11.6...

X Description: Environment data VS Code version: 1.18.0 Python Extension version: 0.8.0 Python Version: 3.6.2 :: Continuum Analytics, Inc./ 2.7.13 :: Anaconda 4.4.0 (x86_64) OS and version: OSX El Capitan 10.11.6...

Opengraph URL: https://github.com/microsoft/vscode-python/issues/259

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Run Selection/Line in Python Terminal gives syntax errors when running selection with function def or other blocks","articleBody":"## Environment data\r\nVS Code version:  1.18.0\r\nPython Extension version: 0.8.0  \r\nPython Version:   3.6.2 :: Continuum Analytics, Inc./ 2.7.13 :: Anaconda 4.4.0 (x86_64)\r\nOS and version:    OSX El Capitan 10.11.6\r\n\r\n## Actual behavior\r\nTries to execute a block and gives a syntax error\r\n\r\n![image](https://user-images.githubusercontent.com/24549972/32990222-ffa5af06-cd25-11e7-802b-1de2c6fe95fb.png)\r\n\r\n\r\nHowever, while executing those block as individual blocks. e.g. def separate and print separate it works fine.\r\n\r\n## Expected  behavior\r\n\r\nIt should execute the whole selection without issues.\r\n\r\n## Steps to reproduce:  \r\n-  Set Python as default interpreter\r\n-  Execute any of the sample blocks by \"Run Selection/Line command\"\r\n\r\n\r\n## Logs\r\nOutput from ```Python``` Terminal\r\n![image](https://user-images.githubusercontent.com/24549972/32990258-ad1bfd3e-cd26-11e7-91e1-7535fea598cf.png)\r\n![image](https://user-images.githubusercontent.com/24549972/32990265-cb872a96-cd26-11e7-868d-3946492f02fe.png)\r\n\r\n","author":{"url":"https://github.com/arundeep78","@type":"Person","name":"arundeep78"},"datePublished":"2017-11-19T11:43:21Z","url":"https://github.com/microsoft/vscode-python/issues/259"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:92f41bdf-af60-7604-16a3-8ac3f5faa45d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE98C:388D25:53A839:70C8B2:6AFE49D3
html-safe-nonce3b466a517095e9fcc367e49c1d773419b87e380ce2460984933dc4dc021185f1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOThDOjM4OEQyNTo1M0E4Mzk6NzBDOEIyOjZBRkU0OUQzIiwidmlzaXRvcl9pZCI6IjEyNTg5MTgwMjY1MDIwOTczNjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac52e2e2ab801cf9c2608e5bd07769e48b3eaae656a0c534014ea06f4f1c510146
hovercard-subject-tagissue:275152307
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Microsoft/vscode-python/259/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0db8c5950882bb0c9ceb3ab637d08223770b58973c222faa5fb1b3a26054ae83/microsoft/vscode-python/issues/259
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0db8c5950882bb0c9ceb3ab637d08223770b58973c222faa5fb1b3a26054ae83/microsoft/vscode-python/issues/259
og:image:altEnvironment data VS Code version: 1.18.0 Python Extension version: 0.8.0 Python Version: 3.6.2 :: Continuum Analytics, Inc./ 2.7.13 :: Anaconda 4.4.0 (x86_64) OS and version: OSX El Capitan 10.11.6...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamearundeep78
hostnamegithub.com
expected-hostnamegithub.com
Nonef1a5901e2377b0af2a0b303f9528678f1475d04b9219dca1e993344196eaa07c
turbo-cache-controlno-preview
go-importgithub.com/microsoft/vscode-python git https://github.com/microsoft/vscode-python.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id106462765
octolytics-dimension-repository_nwomicrosoft/vscode-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id49946255
octolytics-dimension-repository_parent_nwoDonJayamanne/pythonVSCode
octolytics-dimension-repository_network_root_id49946255
octolytics-dimension-repository_network_root_nwoDonJayamanne/pythonVSCode
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasece393ea11ad276623b946bc9663d3e7d6f564275
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/Microsoft/vscode-python/issues/259#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fvscode-python%2Fissues%2F259
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fvscode-python%2Fissues%2F259
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2Fvscode-python
Reloadhttps://github.com/Microsoft/vscode-python/issues/259
Reloadhttps://github.com/Microsoft/vscode-python/issues/259
Reloadhttps://github.com/Microsoft/vscode-python/issues/259
microsofthttps://github.com/microsoft
vscode-pythonhttps://github.com/microsoft/vscode-python
Codehttps://github.com/microsoft/vscode-python
Issues344 (344)https://github.com/microsoft/vscode-python/issues
Pull requests54 (54)https://github.com/microsoft/vscode-python/pulls
Discussionshttps://github.com/microsoft/vscode-python/discussions
Actionshttps://github.com/microsoft/vscode-python/actions
Wikihttps://github.com/microsoft/vscode-python/wiki
Security and quality2 (2)https://github.com/microsoft/vscode-python/security
Insightshttps://github.com/microsoft/vscode-python/insights
https://github.com/microsoft/vscode-python
New issuehttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/259
New issuehttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/259
#1515https://github.com/microsoft/vscode-python/pull/1515
#1432https://github.com/microsoft/vscode-python/pull/1432
Run Selection/Line in Python Terminal gives syntax errors when running selection with function def or other blockshttps://github.com/microsoft/vscode-python/issues/259#top
#1515https://github.com/microsoft/vscode-python/pull/1515
#1432https://github.com/microsoft/vscode-python/pull/1432
area-terminalhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22area-terminal%22
bugIssue identified by VS Code Team member as probable bughttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22bug%22
April 2018https://github.com/microsoft/vscode-python/milestone/5
https://github.com/arundeep78
Arundeep Singh (arundeep78)https://github.com/arundeep78
on Nov 19, 2017https://github.com/microsoft/vscode-python/issues/259#issue-275152307
https://user-images.githubusercontent.com/24549972/32990222-ffa5af06-cd25-11e7-802b-1de2c6fe95fb.png
https://user-images.githubusercontent.com/24549972/32990258-ad1bfd3e-cd26-11e7-91e1-7535fea598cf.png
https://user-images.githubusercontent.com/24549972/32990265-cb872a96-cd26-11e7-868d-3946492f02fe.png
Nexthttps://github.com/microsoft/vscode-python/issues/259?timeline_page=1
Brett Cannon (brettcannon)https://github.com/brettcannon
awaiting 1-verificationhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22awaiting%201-verification%22
area-terminalhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22area-terminal%22
bugIssue identified by VS Code Team member as probable bughttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22bug%22
on Nov 21, 2017https://github.com/microsoft/vscode-python/issues/259#event-1352837440
Eric Snow (ericsnowcurrently)https://github.com/ericsnowcurrently
on Jan 18, 2018https://github.com/microsoft/vscode-python/issues/259#event-1431374241
https://github.com/ericsnowcurrently
Eric Snow (ericsnowcurrently)https://github.com/ericsnowcurrently
on Jan 18, 2018https://github.com/microsoft/vscode-python/issues/259#issuecomment-358798252
Arundeep Singh (@arundeep78)https://github.com/arundeep78
Eric Snow (ericsnowcurrently)https://github.com/ericsnowcurrently
awaiting 2-PRhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22awaiting%202-PR%22
awaiting 1-verificationhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22awaiting%201-verification%22
on Jan 18, 2018https://github.com/microsoft/vscode-python/issues/259#event-1431385157
Eric Snow (ericsnowcurrently)https://github.com/ericsnowcurrently
on Jan 18, 2018https://github.com/microsoft/vscode-python/issues/259#event-1431385347
https://github.com/tebeka
Miki Tebeka (tebeka)https://github.com/tebeka
on Jan 23, 2018https://github.com/microsoft/vscode-python/issues/259#issuecomment-359723182
https://github.com/tebeka
Miki Tebeka (tebeka)https://github.com/tebeka
on Jan 24, 2018https://github.com/microsoft/vscode-python/issues/259#issuecomment-360145924
is callinghttps://github.com/Microsoft/vscode-python/blob/df392173d5cf6f5216816f7da383bba91e3d9651/src/client/terminals/codeExecution/codeExecutionManager.ts#L61
removes empty lineshttps://github.com/Microsoft/vscode-python/blob/master/src/client/terminals/codeExecution/helper.ts#L18
https://github.com/tebeka
Miki Tebeka (tebeka)https://github.com/tebeka
on Jan 29, 2018https://github.com/microsoft/vscode-python/issues/259#issuecomment-361180399
ad806fahttps://github.com/microsoft/vscode-python/commit/ad806fabcc533f8b13f88f0cd4ae41b02d301c77
Don Jayamanne (@DonJayamanne)https://github.com/DonJayamanne
https://github.com/brettcannon
Brett Cannon (brettcannon)https://github.com/brettcannon
on Jan 29, 2018https://github.com/microsoft/vscode-python/issues/259#issuecomment-361350434
Miki Tebeka (@tebeka)https://github.com/tebeka
insiders buildhttps://pvsc.blob.core.windows.net/extension-builds/ms-python-insiders.vsix
https://github.com/tebeka
Miki Tebeka (tebeka)https://github.com/tebeka
on Jan 29, 2018https://github.com/microsoft/vscode-python/issues/259#issuecomment-361359345
36b3050https://github.com/microsoft/vscode-python/commit/36b3050b2618e2abed23e5d93e101f260c53ed13
https://github.com/brettcannon
Brett Cannon (brettcannon)https://github.com/brettcannon
on Jan 29, 2018https://github.com/microsoft/vscode-python/issues/259#issuecomment-361359541
Brett Cannon (brettcannon)https://github.com/brettcannon
closed-fixedhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22closed-fixed%22
on Jan 29, 2018https://github.com/microsoft/vscode-python/issues/259#event-1447075528
Brett Cannon (brettcannon)https://github.com/brettcannon
February 2018https://github.com/microsoft/vscode-python/milestone/3
March 2018https://github.com/microsoft/vscode-python/milestone/4
on Feb 20, 2018https://github.com/microsoft/vscode-python/issues/259#event-1483072142
Brett Cannon (brettcannon)https://github.com/brettcannon
March 2018https://github.com/microsoft/vscode-python/milestone/4
April 2018https://github.com/microsoft/vscode-python/milestone/5
on Mar 12, 2018https://github.com/microsoft/vscode-python/issues/259#event-1516932910
https://github.com/DonJayamanne
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
on Apr 19, 2018https://github.com/microsoft/vscode-python/issues/259#issuecomment-382571296
Brett Cannon (@brettcannon)https://github.com/brettcannon
https://stackoverflow.com/questions/8391633/blank-line-rule-at-interactive-prompthttps://stackoverflow.com/questions/8391633/blank-line-rule-at-interactive-prompt
https://github.com/brettcannon
Brett Cannon (brettcannon)https://github.com/brettcannon
on Apr 19, 2018https://github.com/microsoft/vscode-python/issues/259#issuecomment-382799206
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
completedhttps://github.com/microsoft/vscode-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1432https://github.com/microsoft/vscode-python/pull/1432
on Apr 23, 2018https://github.com/microsoft/vscode-python/issues/259#event-1590168687
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
on Apr 23, 2018https://github.com/microsoft/vscode-python/issues/259#event-1590168782
Enhancements to running code in a terminal (#1432)https://github.com/microsoft/vscode-python/commit/55f5ca534e715227f1f8585ed2c2adb50738a512
#1432https://github.com/microsoft/vscode-python/pull/1432
https://docs.github.com/articles/closing-issues-via-commit-messages
55f5ca5https://github.com/microsoft/vscode-python/commit/55f5ca534e715227f1f8585ed2c2adb50738a512
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
on Apr 26, 2018https://github.com/microsoft/vscode-python/issues/259#event-1597653302
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
on Apr 27, 2018https://github.com/microsoft/vscode-python/issues/259#event-1599667083
Remove news entry related to issue #259 as the issue was not fixedhttps://github.com/microsoft/vscode-python/commit/fd4b8f8754e0eb6b2a4092787888d616c12ee087
#259https://github.com/microsoft/vscode-python/issues/259
fd4b8f8https://github.com/microsoft/vscode-python/commit/fd4b8f8754e0eb6b2a4092787888d616c12ee087
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
completedhttps://github.com/microsoft/vscode-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1515https://github.com/microsoft/vscode-python/pull/1515
on Apr 30, 2018https://github.com/microsoft/vscode-python/issues/259#event-1602559992
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
on Apr 30, 2018https://github.com/microsoft/vscode-python/issues/259#event-1602560038
Add blank lines to separate blocks of indented code (#1515)https://github.com/microsoft/vscode-python/commit/da91e3fd6aa40fb8c8a11514bb309028fff0ae2f
#1515https://github.com/microsoft/vscode-python/pull/1515
https://docs.github.com/articles/closing-issues-via-commit-messages
da91e3fhttps://github.com/microsoft/vscode-python/commit/da91e3fd6aa40fb8c8a11514bb309028fff0ae2f
Brett Cannon (brettcannon)https://github.com/brettcannon
validate fixhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22validate%20fix%22
validate fixhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22validate%20fix%22
on May 1, 2018https://github.com/microsoft/vscode-python/issues/259#event-1602678924
lockhttps://github.com/apps/lock
on Jul 11, 2018https://github.com/microsoft/vscode-python/issues/259#event-1726960828
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/vscode-python/issues/259
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/259
area-terminalhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22area-terminal%22
bugIssue identified by VS Code Team member as probable bughttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22bug%22
April 2018https://github.com/microsoft/vscode-python/milestone/5
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.