René's URL Explorer Experiment


Title: VS Code adds the names of unsaved files to sys.path in the completions process · Issue #677 · microsoft/vscode-python · GitHub

Open Graph Title: VS Code adds the names of unsaved files to sys.path in the completions process · Issue #677 · microsoft/vscode-python

X Title: VS Code adds the names of unsaved files to sys.path in the completions process · Issue #677 · microsoft/vscode-python

Description: Environment data VS Code version: 1.19.3 Python Extension version: 0.9.1 Python Version: 2.7.12 OS and version: Ubuntu 16.04.3 x64 Actual behavior The names of unsaved files are added to the sys.path for completion. The code that does th...

Open Graph Description: Environment data VS Code version: 1.19.3 Python Extension version: 0.9.1 Python Version: 2.7.12 OS and version: Ubuntu 16.04.3 x64 Actual behavior The names of unsaved files are added to the sys.pa...

X Description: Environment data VS Code version: 1.19.3 Python Extension version: 0.9.1 Python Version: 2.7.12 OS and version: Ubuntu 16.04.3 x64 Actual behavior The names of unsaved files are added to the sys.pa...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"VS Code adds the names of unsaved files to sys.path in the completions process","articleBody":"## Environment data\r\nVS Code version: 1.19.3\r\nPython Extension version: 0.9.1\r\nPython Version: 2.7.12\r\nOS and version: Ubuntu 16.04.3 x64\r\n\r\n## Actual behavior\r\nThe names of unsaved files are added to the `sys.path` for completion. The code that does this is:\r\nhttps://github.com/Microsoft/vscode-python/blob/b09a4218f5fd2817c0f5544dce5b1e9bba72fc9d/pythonFiles/completion.py#L593-L596\r\n\r\n## Expected  behavior\r\nThey should not be added.\r\n\r\n## Steps to reproduce:  \r\n- Edit an unsaved Python file (You will have to set language mode to Python).\r\n- Debug the `completions.py` process and see that it added the \"Untitled-1\" name to the `sys.path`\r\n\r\n## Screenshot\r\n![VSCode Screenshot](https://user-images.githubusercontent.com/24731903/35672876-8b40f186-0748-11e8-85f4-c0ed81087e34.png)\r\n\r\nP.S. Jedi takes a `sys_path` argument that can be used instead of munging the global `sys.path` of the completions process.\r\n","author":{"url":"https://github.com/segevfiner","@type":"Person","name":"segevfiner"},"datePublished":"2018-02-01T10:11:10Z","url":"https://github.com/microsoft/vscode-python/issues/677"}

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:7a027f96-5a7f-0562-926e-442649e09e2c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA23C:3D7D23:9959C2:D00154:6AFE6174
html-safe-nonce2ed27ce9a0111080e7d09b5604c8e4e23eb8d6c8a1e91179dac6cffee1be7f27
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjNDOjNEN0QyMzo5OTU5QzI6RDAwMTU0OjZBRkU2MTc0IiwidmlzaXRvcl9pZCI6IjQ4NzU0MDU2MDY0MjY0MDMxODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2613c249eea00e78eaf50996e8ba2dfd7132af7b5f24319dc7661dc8fae669ce
hovercard-subject-tagissue:293472240
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/677/issue_layout
twitter:imagehttps://opengraph.githubassets.com/553879fbcef67686c145446f1154b4e90a8efb9817c851279ab64b9751ba8318/microsoft/vscode-python/issues/677
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/553879fbcef67686c145446f1154b4e90a8efb9817c851279ab64b9751ba8318/microsoft/vscode-python/issues/677
og:image:altEnvironment data VS Code version: 1.19.3 Python Extension version: 0.9.1 Python Version: 2.7.12 OS and version: Ubuntu 16.04.3 x64 Actual behavior The names of unsaved files are added to the sys.pa...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesegevfiner
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
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
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/vscode-python/issues/677#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-python%2Fissues%2F677
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%2F677
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/677
Reloadhttps://github.com/microsoft/vscode-python/issues/677
Reloadhttps://github.com/microsoft/vscode-python/issues/677
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/677
New issuehttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/677
#1601https://github.com/microsoft/vscode-python/pull/1601
VS Code adds the names of unsaved files to sys.path in the completions processhttps://github.com/microsoft/vscode-python/issues/677#top
#1601https://github.com/microsoft/vscode-python/pull/1601
https://github.com/DonJayamanne
area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.https://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22area-intellisense%22
bugIssue identified by VS Code Team member as probable bughttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22bug%22
May 2018https://github.com/microsoft/vscode-python/milestone/6
https://github.com/segevfiner
Segev Finer (segevfiner)https://github.com/segevfiner
on Feb 1, 2018https://github.com/microsoft/vscode-python/issues/677#issue-293472240
https://github.com/Microsoft/vscode-python/blob/b09a4218f5fd2817c0f5544dce5b1e9bba72fc9d/pythonFiles/completion.py#L593-L596https://github.com/Microsoft/vscode-python/blob/b09a4218f5fd2817c0f5544dce5b1e9bba72fc9d/pythonFiles/completion.py#L593-L596
https://user-images.githubusercontent.com/24731903/35672876-8b40f186-0748-11e8-85f4-c0ed81087e34.png
Brett Cannon (brettcannon)https://github.com/brettcannon
feature-requestRequest for new features or functionalityhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22feature-request%22
area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.https://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22area-intellisense%22
awaiting 1-decisionhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22awaiting%201-decision%22
on Feb 1, 2018https://github.com/microsoft/vscode-python/issues/677#event-1453679656
https://github.com/brettcannon
Brett Cannon (brettcannon)https://github.com/brettcannon
on Feb 1, 2018https://github.com/microsoft/vscode-python/issues/677#issuecomment-362371122
https://github.com/segevfiner
Segev Finer (segevfiner)https://github.com/segevfiner
on Feb 1, 2018https://github.com/microsoft/vscode-python/issues/677#issuecomment-362372349
https://github.com/brettcannon
Brett Cannon (brettcannon)https://github.com/brettcannon
on Feb 1, 2018https://github.com/microsoft/vscode-python/issues/677#issuecomment-362374076
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
bugIssue identified by VS Code Team member as probable bughttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22bug%22
awaiting 1-decisionhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22awaiting%201-decision%22
feature-requestRequest for new features or functionalityhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22feature-request%22
on Feb 1, 2018https://github.com/microsoft/vscode-python/issues/677#event-1453700504
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Feb 5, 2018https://github.com/microsoft/vscode-python/issues/677#event-1458711021
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
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 Feb 12, 2018https://github.com/microsoft/vscode-python/issues/677#event-1470502550
https://github.com/DonJayamanne
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
on May 3, 2018https://github.com/microsoft/vscode-python/issues/677#issuecomment-386468809
#1471https://github.com/microsoft/vscode-python/pull/1471
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on May 3, 2018https://github.com/microsoft/vscode-python/issues/677#event-1608893525
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
May 2018https://github.com/microsoft/vscode-python/milestone/6
on May 3, 2018https://github.com/microsoft/vscode-python/issues/677#event-1608893591
Brett Cannon (brettcannon)https://github.com/brettcannon
completedhttps://github.com/microsoft/vscode-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1601https://github.com/microsoft/vscode-python/pull/1601
on May 7, 2018https://github.com/microsoft/vscode-python/issues/677#event-1613606500
Brett Cannon (brettcannon)https://github.com/brettcannon
on May 7, 2018https://github.com/microsoft/vscode-python/issues/677#event-1613606697
Add missing news entry for #677 (#1601)https://github.com/microsoft/vscode-python/commit/3464090407c1a6c72fc09b514059e4c7f7a88fdd
#677https://github.com/microsoft/vscode-python/issues/677
#1601https://github.com/microsoft/vscode-python/pull/1601
3464090https://github.com/microsoft/vscode-python/commit/3464090407c1a6c72fc09b514059e4c7f7a88fdd
lockhttps://github.com/apps/lock
on Jul 11, 2018https://github.com/microsoft/vscode-python/issues/677#event-1726906152
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/vscode-python/issues/677
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/677
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.https://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22area-intellisense%22
bugIssue identified by VS Code Team member as probable bughttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22bug%22
May 2018https://github.com/microsoft/vscode-python/milestone/6
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.