René's URL Explorer Experiment


Title: Show a more meaningful error when sending code to the Python terminal. by guoci · Pull Request #25421 · microsoft/vscode-python · GitHub

Open Graph Title: Show a more meaningful error when sending code to the Python terminal. by guoci · Pull Request #25421 · microsoft/vscode-python

X Title: Show a more meaningful error when sending code to the Python terminal. by guoci · Pull Request #25421 · microsoft/vscode-python

Description: If there is any syntax error in the file where the user sends code, deprecated will be sent to the Python terminal. This PR modifies to show the exception from ast.parse. Related: #25117

Open Graph Description: If there is any syntax error in the file where the user sends code, deprecated will be sent to the Python terminal. This PR modifies to show the exception from ast.parse. Related: #25117

X Description: If there is any syntax error in the file where the user sends code, deprecated will be sent to the Python terminal. This PR modifies to show the exception from ast.parse. Related: #25117

Opengraph URL: https://github.com/microsoft/vscode-python/pull/25421

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:421e85f8-472e-9afb-0d5a-a629bb375864
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id840A:2D7CAC:4DCDAC1:6908AA0:6964E9B7
html-safe-nonce3f3ce01b4c91d2bc4fd39594d62675bc2cbb39128c9265f65f739af8a95241c5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDBBOjJEN0NBQzo0RENEQUMxOjY5MDhBQTA6Njk2NEU5QjciLCJ2aXNpdG9yX2lkIjoiNjI1MjQwMzY1NTE0NzA1NTU0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd8f39bb3bdad596eba9ee0a3034b1185d7a51efeadc4b293beacede0d7343bf0
hovercard-subject-tagpull_request:2775983072
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/microsoft/vscode-python/25421/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c7f7394ab93d4d152844006d76fca7ac1a9b839a2d30e580a8698b2a4a10cb1e/microsoft/vscode-python/pull/25421
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c7f7394ab93d4d152844006d76fca7ac1a9b839a2d30e580a8698b2a4a10cb1e/microsoft/vscode-python/pull/25421
og:image:altIf there is any syntax error in the file where the user sends code, deprecated will be sent to the Python terminal. This PR modifies to show the exception from ast.parse. Related: #25117
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameguoci
hostnamegithub.com
expected-hostnamegithub.com
None3c30097417ecb9dfdab6b2e8bc7dc38d73e183d6ad48f94cb69e4a5daa2dbb87
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
release69fc54a84c74307369dba42af5401200531d116e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/vscode-python/pull/25421#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-python%2Fpull%2F25421
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-python%2Fpull%2F25421
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=microsoft%2Fvscode-python
Reloadhttps://github.com/microsoft/vscode-python/pull/25421
Reloadhttps://github.com/microsoft/vscode-python/pull/25421
Reloadhttps://github.com/microsoft/vscode-python/pull/25421
microsoft https://github.com/microsoft
vscode-pythonhttps://github.com/microsoft/vscode-python
DonJayamanne/pythonVSCodehttps://github.com/DonJayamanne/pythonVSCode
Notifications https://github.com/login?return_to=%2Fmicrosoft%2Fvscode-python
Fork 1.3k https://github.com/login?return_to=%2Fmicrosoft%2Fvscode-python
Star 4.5k https://github.com/login?return_to=%2Fmicrosoft%2Fvscode-python
Code https://github.com/microsoft/vscode-python
Issues 322 https://github.com/microsoft/vscode-python/issues
Pull requests 13 https://github.com/microsoft/vscode-python/pulls
Discussions https://github.com/microsoft/vscode-python/discussions
Actions https://github.com/microsoft/vscode-python/actions
Models https://github.com/microsoft/vscode-python/models
Wiki https://github.com/microsoft/vscode-python/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/microsoft/vscode-python/security
Please reload this pagehttps://github.com/microsoft/vscode-python/pull/25421
Insights https://github.com/microsoft/vscode-python/pulse
Code https://github.com/microsoft/vscode-python
Issues https://github.com/microsoft/vscode-python/issues
Pull requests https://github.com/microsoft/vscode-python/pulls
Discussions https://github.com/microsoft/vscode-python/discussions
Actions https://github.com/microsoft/vscode-python/actions
Models https://github.com/microsoft/vscode-python/models
Wiki https://github.com/microsoft/vscode-python/wiki
Security https://github.com/microsoft/vscode-python/security
Insights https://github.com/microsoft/vscode-python/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fmicrosoft%2Fvscode-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fmicrosoft%2Fvscode-python%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/microsoft/vscode-python/pull/25421#issue-comment-box
guocihttps://github.com/guoci
microsoft:mainhttps://github.com/microsoft/vscode-python/tree/main
guoci:repl_send_error_msghttps://github.com/guoci/vscode-python/tree/repl_send_error_msg
Show a more meaningful error when sending code to the Python terminal. https://github.com/microsoft/vscode-python/pull/25421#top
guocihttps://github.com/guoci
microsoft:mainhttps://github.com/microsoft/vscode-python/tree/main
guoci:repl_send_error_msghttps://github.com/guoci/vscode-python/tree/repl_send_error_msg
Conversation 5 https://github.com/microsoft/vscode-python/pull/25421
Commits 1 https://github.com/microsoft/vscode-python/pull/25421/commits
Checks 52 https://github.com/microsoft/vscode-python/pull/25421/checks
Files changed 2 https://github.com/microsoft/vscode-python/pull/25421/files
https://github.co/hiddenchars
https://github.com/microsoft/vscode-python/pull/{{ revealButtonHref }}
https://github.com/guoci
guocihttps://github.com/guoci
Aug 26, 2025https://github.com/microsoft/vscode-python/pull/25421#issue-3356591880
#25117https://github.com/microsoft/vscode-python/issues/25117
Please reload this pagehttps://github.com/microsoft/vscode-python/pull/25421
https://github.com/guoci
guocihttps://github.com/guoci
Aug 26, 2025https://github.com/microsoft/vscode-python/pull/25421#issuecomment-3225164295
Please reload this pagehttps://github.com/microsoft/vscode-python/pull/25421
https://github.com/guoci
guocihttps://github.com/guoci
Aug 26, 2025 https://github.com/microsoft/vscode-python/pull/25421#ref-issue-3100823024
Using smart send with REPL leads to NameError for every line of code #25117 https://github.com/microsoft/vscode-python/issues/25117
https://github.com/guoci
guocihttps://github.com/guoci
force-pushedhttps://github.com/microsoft/vscode-python/compare/668272e75a594db17051480cacf88023edcd9d65..366ee1b13e88aebbb6235c2fbd9925d1fbefcf30
668272ehttps://github.com/microsoft/vscode-python/commit/668272e75a594db17051480cacf88023edcd9d65
366ee1bhttps://github.com/microsoft/vscode-python/commit/366ee1b13e88aebbb6235c2fbd9925d1fbefcf30
Compare https://github.com/microsoft/vscode-python/compare/668272e75a594db17051480cacf88023edcd9d65..366ee1b13e88aebbb6235c2fbd9925d1fbefcf30
September 5, 2025 13:18https://github.com/microsoft/vscode-python/pull/25421#event-19528915076
https://github.com/guoci
enhance error message when sending codehttps://github.com/microsoft/vscode-python/pull/25421/commits/3b338ece891bdeaead90d978b1bb26cb51cce449
3b338echttps://github.com/microsoft/vscode-python/pull/25421/commits/3b338ece891bdeaead90d978b1bb26cb51cce449
https://github.com/guoci
guocihttps://github.com/guoci
force-pushedhttps://github.com/microsoft/vscode-python/compare/366ee1b13e88aebbb6235c2fbd9925d1fbefcf30..3b338ece891bdeaead90d978b1bb26cb51cce449
366ee1bhttps://github.com/microsoft/vscode-python/commit/366ee1b13e88aebbb6235c2fbd9925d1fbefcf30
3b338echttps://github.com/microsoft/vscode-python/commit/3b338ece891bdeaead90d978b1bb26cb51cce449
Compare https://github.com/microsoft/vscode-python/compare/366ee1b13e88aebbb6235c2fbd9925d1fbefcf30..3b338ece891bdeaead90d978b1bb26cb51cce449
September 6, 2025 13:57https://github.com/microsoft/vscode-python/pull/25421#event-19543539415
https://github.com/eleanorjboyd
eleanorjboydhttps://github.com/eleanorjboyd
anthonykim1https://github.com/anthonykim1
September 11, 2025 23:43https://github.com/microsoft/vscode-python/pull/25421#event-19648105134
https://github.com/anthonykim1
anthonykim1https://github.com/anthonykim1
Sep 12, 2025https://github.com/microsoft/vscode-python/pull/25421#issuecomment-3285892827
Please reload this pagehttps://github.com/microsoft/vscode-python/pull/25421
Please reload this pagehttps://github.com/microsoft/vscode-python/pull/25421
https://github.com/guoci
guocihttps://github.com/guoci
Sep 12, 2025https://github.com/microsoft/vscode-python/pull/25421#issuecomment-3286000383
Please reload this pagehttps://github.com/microsoft/vscode-python/pull/25421
https://github.com/eleanorjboyd
eleanorjboydhttps://github.com/eleanorjboyd
Nov 11, 2025https://github.com/microsoft/vscode-python/pull/25421#issuecomment-3517996945
@anthonykim1https://github.com/anthonykim1
Please reload this pagehttps://github.com/microsoft/vscode-python/pull/25421
https://github.com/eleanorjboyd
eleanorjboydhttps://github.com/eleanorjboyd
anthonykim1https://github.com/anthonykim1
Dec 16, 2025https://github.com/microsoft/vscode-python/pull/25421#event-21603172927
https://github.com/scutuatua-crypto
scutuatua-cryptohttps://github.com/scutuatua-crypto
Dec 21, 2025 https://github.com/microsoft/vscode-python/pull/25421#pullrequestreview-3601560936
View reviewed changes https://github.com/microsoft/vscode-python/pull/25421/files/3b338ece891bdeaead90d978b1bb26cb51cce449
https://github.com/eleanorjboyd
eleanorjboydhttps://github.com/eleanorjboyd
info-needed https://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3Ainfo-needed
info-needed https://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3Ainfo-needed
Jan 8, 2026https://github.com/microsoft/vscode-python/pull/25421#event-21929760016
https://github.com/anthonykim1
anthonykim1https://github.com/anthonykim1
Jan 8, 2026https://github.com/microsoft/vscode-python/pull/25421#issuecomment-3725308267
Please reload this pagehttps://github.com/microsoft/vscode-python/pull/25421
@guocihttps://github.com/guoci
https://private-user-images.githubusercontent.com/62267334/533543025-c30bd82c-c7fc-4c22-ab04-51b568648c31.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjgyMjE0MTIsIm5iZiI6MTc2ODIyMTExMiwicGF0aCI6Ii82MjI2NzMzNC81MzM1NDMwMjUtYzMwYmQ4MmMtYzdmYy00YzIyLWFiMDQtNTFiNTY4NjQ4YzMxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTEyVDEyMzE1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFlNTZjMmIzMDViMDc4MzU2YzVkZmY2MmZjYjc1N2U3ZTQxNWZiMjNhYzRjN2M0YjBlZDg1NTk1ZmQzNGMxMGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.EOAZ76NFmtYENOsZRHBlvbUb3lqo0i5mZ0aCz25X5Bc
Please reload this pagehttps://github.com/microsoft/vscode-python/pull/25421
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-python%2Fpull%2F25421
https://github.com/anthonykim1
anthonykim1 https://github.com/anthonykim1
https://github.com/scutuatua-crypto
scutuatua-crypto https://github.com/scutuatua-crypto
https://github.com/microsoft/vscode-python/pull/25421/files/3b338ece891bdeaead90d978b1bb26cb51cce449
https://github.com/anthonykim1
anthonykim1 https://github.com/anthonykim1
Please reload this pagehttps://github.com/microsoft/vscode-python/pull/25421
https://github.com/guoci
https://github.com/anthonykim1
https://github.com/eleanorjboyd
https://github.com/scutuatua-crypto
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.