René's URL Explorer Experiment


Title: Issue with autoFormatOnSave and yapf · Issue #124 · microsoft/vscode-python · GitHub

Open Graph Title: Issue with autoFormatOnSave and yapf · Issue #124 · microsoft/vscode-python

X Title: Issue with autoFormatOnSave and yapf · Issue #124 · microsoft/vscode-python

Description: From David Cramer (@dcramer) on June 1, 2017 6:44 Environment data VS Code version: 1.12.2 (tried Insiders as well) Python Extension version: 0.6.4 Python Version: 2.7.13 OS and version: macOS Sierra 10.12.4 Actual behavior Upon save it ...

Open Graph Description: From David Cramer (@dcramer) on June 1, 2017 6:44 Environment data VS Code version: 1.12.2 (tried Insiders as well) Python Extension version: 0.6.4 Python Version: 2.7.13 OS and version: macOS Sier...

X Description: From David Cramer (@dcramer) on June 1, 2017 6:44 Environment data VS Code version: 1.12.2 (tried Insiders as well) Python Extension version: 0.6.4 Python Version: 2.7.13 OS and version: macOS Sier...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issue with autoFormatOnSave and yapf","articleBody":"_From @dcramer on June 1, 2017 6:44_\n\n## Environment data\r\nVS Code version:  1.12.2 (tried Insiders as well)\r\nPython Extension version:  0.6.4\r\nPython Version:   2.7.13\r\nOS and version:    macOS Sierra 10.12.4\r\n\r\n## Actual behavior\r\nUpon save it reformats the file, and does not appear to behave the same as ``yapf -i file``.\r\n\r\nFor example, this content:\r\n\r\n```python\r\nfrom __future__ import absolute_import\r\n\r\nfrom django.db import models\r\nfrom django.utils import timezone\r\n\r\nfrom sentry.db.models import (BoundedBigIntegerField, FlexibleForeignKey,\r\n                              Model, sane_repr)\r\n\r\n```\r\n\r\nWhen I hit save, it generates invalid Python:\r\n\r\n```python\r\nfrom __future__ import absolute_import\r\n\r\nfrom django.db import models\r\nfrom django.utils import timezone\r\n\r\nfrom sentry.db.models import (\r\n    BoundedBigIntegerField, FlexibleForeignKey, Model, sane_repr\r\n)\r\n)\r\n```\r\n\r\n\r\n## Expected  behavior\r\n\r\nThe expected output should be:\r\n\r\n```python\r\nfrom __future__ import absolute_import\r\n\r\nfrom django.db import models\r\nfrom django.utils import timezone\r\n\r\nfrom sentry.db.models import (\r\n    BoundedBigIntegerField, FlexibleForeignKey, Model, sane_repr\r\n)\r\n```\r\n\r\n## Steps to reproduce:  \r\n-  add ``editor.formatOnSave`` to workspace settings\r\n-  save the file\r\n\r\nEven when it doesnt incorrectly format the file into invalid Python, it doesnt seem to respect the configuration within setup.cfg (i still get different output from yapf -i).\r\n\r\nHere is the changeset which we identified this behavior in:\r\n\r\nhttps://github.com/getsentry/sentry/commit/a2587aa38a40c283eb6780e34f9caefa452ccf77\r\n\r\n## Settings  \r\nYour launch.json (if dealing with debugger issues):  \r\n```json\r\n```   \r\nYour settings.json:   \r\n```json\r\n{\r\n    \"files.exclude\": {\r\n        \"**/*.pyc\": true,\r\n        \"static\": true,\r\n        \"node_modules\": true,\r\n        \"src/sentry/static/dist\": true,\r\n        \"env\": true\r\n    },\r\n    \"prettier.bracketSpacing\": false,\r\n    \"prettier.singleQuote\": true,\r\n    \"prettier.printWidth\": 90,\r\n    \"eslint.options\": {\r\n        \"configFile\": \".eslintrc\"\r\n    },\r\n    \"[javascript]\": {\r\n        \"editor.formatOnSave\": true\r\n    },\r\n    \"[json]\": {\r\n        \"editor.formatOnSave\": true\r\n    },\r\n    \"editor.formatOnSave\": true,\r\n    \"python.linting.pylintEnabled\": false,\r\n    \"python.linting.flake8Enabled\": true,\r\n    \"python.formatting.provider\": \"yapf\",\r\n    \"python.pythonPath\": \"${env.WORKON_HOME}/sentry/bin/python\"\r\n}\r\n```   \r\n\n\n_Copied from original issue: DonJayamanne/pythonVSCode#992_","author":{"url":"https://github.com/DonJayamanne","@type":"Person","name":"DonJayamanne"},"datePublished":"2017-11-13T23:04:21Z","url":"https://github.com/microsoft/vscode-python/issues/124"}

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:65877602-6f01-fff8-ddaf-9539b6f4aae7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9FB0:109EA7:91BE8:BDD10:6AFE2FD1
html-safe-noncebda5f5d6da8d5cf4d3aaf2d570e31d3ca583655960ed715713d85cc51e7dc4f0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkIwOjEwOUVBNzo5MUJFODpCREQxMDo2QUZFMkZEMSIsInZpc2l0b3JfaWQiOiI0NjYwMDE5MDU2NzMwODQ1MTM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac91153707de7926cc470da8f159a72c03b97c10602f16e096399deb8745d37150
hovercard-subject-tagissue:273609984
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/124/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c00a6f70b7024815aeb6ac84803e52bd5891aa71b6c504b701cb5e8b3435d13b/microsoft/vscode-python/issues/124
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c00a6f70b7024815aeb6ac84803e52bd5891aa71b6c504b701cb5e8b3435d13b/microsoft/vscode-python/issues/124
og:image:altFrom David Cramer (@dcramer) on June 1, 2017 6:44 Environment data VS Code version: 1.12.2 (tried Insiders as well) Python Extension version: 0.6.4 Python Version: 2.7.13 OS and version: macOS Sier...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDonJayamanne
hostnamegithub.com
expected-hostnamegithub.com
Noned70e31220a67f6376c108d2416fa8e7df854c1065b1672ab7a88ab6dc3a809e2
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
releaseccb88d9c92abe69245b429398c8a57ae87070c7c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/vscode-python/issues/124#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-python%2Fissues%2F124
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%2F124
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/124
Reloadhttps://github.com/microsoft/vscode-python/issues/124
Reloadhttps://github.com/microsoft/vscode-python/issues/124
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/124
New issuehttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/124
Issue with autoFormatOnSave and yapfhttps://github.com/microsoft/vscode-python/issues/124#top
https://github.com/MikhailArkhipov
area-formattinghttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22area-formatting%22
bugIssue identified by VS Code Team member as probable bughttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22bug%22
January 2018https://github.com/microsoft/vscode-python/milestone/2
https://github.com/DonJayamanne
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
on Nov 13, 2017https://github.com/microsoft/vscode-python/issues/124#issue-273609984
David Cramer (@dcramer)https://github.com/dcramer
getsentry/sentry@a2587aahttps://github.com/getsentry/sentry/commit/a2587aa38a40c283eb6780e34f9caefa452ccf77
Nexthttps://github.com/microsoft/vscode-python/issues/124?timeline_page=1
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
bughttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22bug%22
Formathttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22Format%22
mhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22m%22
on Nov 13, 2017https://github.com/microsoft/vscode-python/issues/124#event-1339790732
https://github.com/DonJayamanne
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
on Nov 13, 2017https://github.com/microsoft/vscode-python/issues/124#issuecomment-344089345
Sean Brant (@seanbrant)https://github.com/seanbrant
David Cramer (@dcramer)https://github.com/dcramer
https://github.com/DonJayamanne
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
on Nov 13, 2017https://github.com/microsoft/vscode-python/issues/124#issuecomment-344089348
David Cramer (@dcramer)https://github.com/dcramer
Sean Brant (@seanbrant)https://github.com/seanbrant
https://github.com/DonJayamanne
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
on Nov 13, 2017https://github.com/microsoft/vscode-python/issues/124#issuecomment-344089352
Yegor Ius (@yegorski)https://github.com/yegorski
https://github.com/DonJayamanne
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
on Nov 13, 2017https://github.com/microsoft/vscode-python/issues/124#issuecomment-344089353
Yegor Ius (@yegorski)https://github.com/yegorski
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
bughttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22bug%22
Formathttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22Format%22
mhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22m%22
on Nov 14, 2017https://github.com/microsoft/vscode-python/issues/124#event-1340316770
Brett Cannon (brettcannon)https://github.com/brettcannon
awaiting 2-PRhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22awaiting%202-PR%22
area-formattinghttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22area-formatting%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 14, 2017https://github.com/microsoft/vscode-python/issues/124#event-1341936622
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Dec 14, 2017https://github.com/microsoft/vscode-python/issues/124#event-1388138194
https://github.com/sztomi
Tamás Szelei (sztomi)https://github.com/sztomi
on Dec 27, 2017https://github.com/microsoft/vscode-python/issues/124#issuecomment-354149092
Brett Cannon (brettcannon)https://github.com/brettcannon
awaiting 4-validationhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22awaiting%204-validation%22
closed-fixedhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22closed-fixed%22
closed-verified fixedhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22closed-verified%20fixed%22
awaiting 2-PRhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22awaiting%202-PR%22
awaiting 4-validationhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22awaiting%204-validation%22
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/124#event-1447112854
https://github.com/swarnendubiswas
Swarnendu Biswas (swarnendubiswas)https://github.com/swarnendubiswas
on Feb 7, 2018https://github.com/microsoft/vscode-python/issues/124#issuecomment-363926262
https://github.com/osya
osyahttps://github.com/osya
on Feb 24, 2018https://github.com/microsoft/vscode-python/issues/124#issuecomment-368225927
https://github.com/brettcannon
Brett Cannon (brettcannon)https://github.com/brettcannon
on Feb 26, 2018https://github.com/microsoft/vscode-python/issues/124#issuecomment-368642725
osyahttps://github.com/osya
https://github.com/osya
osyahttps://github.com/osya
on Feb 26, 2018https://github.com/microsoft/vscode-python/issues/124#issuecomment-368657057
Brett Cannon (@brettcannon)https://github.com/brettcannon
https://github.com/brettcannon
Brett Cannon (brettcannon)https://github.com/brettcannon
on Feb 26, 2018https://github.com/microsoft/vscode-python/issues/124#issuecomment-368681145
https://github.com/patrys
Patryk Zawadzki (patrys)https://github.com/patrys
on Feb 27, 2018https://github.com/microsoft/vscode-python/issues/124#issuecomment-368776471
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Feb 27, 2018https://github.com/microsoft/vscode-python/issues/124#issuecomment-369011883
#730https://github.com/microsoft/vscode-python/issues/730
https://github.com/osya
osyahttps://github.com/osya
on Mar 9, 2018https://github.com/microsoft/vscode-python/issues/124#issuecomment-371975505
#730https://github.com/microsoft/vscode-python/issues/730
#730https://github.com/microsoft/vscode-python/issues/730
#730https://github.com/microsoft/vscode-python/issues/730
lockhttps://github.com/apps/lock
on Jul 11, 2018https://github.com/microsoft/vscode-python/issues/124#event-1728822692
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/vscode-python/issues/124
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/124
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
area-formattinghttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22area-formatting%22
bugIssue identified by VS Code Team member as probable bughttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22bug%22
January 2018https://github.com/microsoft/vscode-python/milestone/2
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.