René's URL Explorer Experiment


Title: Failed to parse `pyproject.toml` error when pyproject.toml has comments and CRLF line endings · Issue #25809 · microsoft/vscode-python · GitHub

Open Graph Title: Failed to parse `pyproject.toml` error when pyproject.toml has comments and CRLF line endings · Issue #25809 · microsoft/vscode-python

X Title: Failed to parse `pyproject.toml` error when pyproject.toml has comments and CRLF line endings · Issue #25809 · microsoft/vscode-python

Description: Environment data Pylance version: 2026.1.1 OS and version: Windows 11 build 26200 Python version (& distribution if applicable, e.g. Anaconda): 3.14.2 Code Snippet [tool.ruff.lint] select = [ # flake8-builtins "A" ] Repro Steps Create a ...

Open Graph Description: Environment data Pylance version: 2026.1.1 OS and version: Windows 11 build 26200 Python version (& distribution if applicable, e.g. Anaconda): 3.14.2 Code Snippet [tool.ruff.lint] select = [ # fla...

X Description: Environment data Pylance version: 2026.1.1 OS and version: Windows 11 build 26200 Python version (& distribution if applicable, e.g. Anaconda): 3.14.2 Code Snippet [tool.ruff.lint] select = [ #...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Failed to parse `pyproject.toml` error when pyproject.toml has comments and CRLF line endings","articleBody":"## Environment data\n\n\u003c!--\nTo find your version, open the VS Code extensions panel, then locate Pylance from the list of installed extensions. The version appears next to the name.\n-->\n\n-   Pylance version: 2026.1.1\n-   OS and version: Windows 11 build 26200\n-   Python version (& distribution if applicable, e.g. Anaconda): 3.14.2\n\n## Code Snippet\n\n```toml\n[tool.ruff.lint]\nselect = [\n  # flake8-builtins\n  \"A\"\n]\n```\n\n## Repro Steps\n\nCreate a pyproject.toml, set line endings to CRLF, then simply add a comment anywhere. The Python logs in the output panel will then log an error like this:\n\n```\n2026-02-21 16:17:12.732 [error] Failed to parse `pyproject.toml`: [TomlError: Control characters (codes \u003c 0x1f and 0x7f) are not allowed in comments, use \\u000d instead at row 28, col 20, pos 620:\n27: select = [\n28>   # flake8-builtins\n                       ^\n29:   \"A\",\n\n\n\tat i.errorControlCharIn (c:\\Users\\Joel\\.vscode\\extensions\\ms-python.python-2026.2.0-win32-x64\\out\\client\\extension.js:2:1109372)\n\tat i.parseComment (c:\\Users\\Joel\\.vscode\\extensions\\ms-python.python-2026.2.0-win32-x64\\out\\client\\extension.js:2:1101920)\n\tat i.runOne (c:\\Users\\Joel\\.vscode\\extensions\\ms-python.python-2026.2.0-win32-x64\\out\\client\\extension.js:2:1093896)\n\tat i.parse (c:\\Users\\Joel\\.vscode\\extensions\\ms-python.python-2026.2.0-win32-x64\\out\\client\\extension.js:2:1093642)\n\tat e.exports (c:\\Users\\Joel\\.vscode\\extensions\\ms-python.python-2026.2.0-win32-x64\\out\\client\\extension.js:2:1127199)\n\tat E (c:\\Users\\Joel\\.vscode\\extensions\\ms-python.python-2026.2.0-win32-x64\\out\\client\\extension.js:2:802534)\n\tat t.isPipInstallableToml (c:\\Users\\Joel\\.vscode\\extensions\\ms-python.python-2026.2.0-win32-x64\\out\\client\\extension.js:2:802782)\n\tat s (c:\\Users\\Joel\\.vscode\\extensions\\ms-python.python-2026.2.0-win32-x64\\out\\client\\extension.js:2:806995)\n\tat c:\\Users\\Joel\\.vscode\\extensions\\ms-python.python-2026.2.0-win32-x64\\out\\client\\extension.js:2:807364\n\tat ef.value (file:///c:/Users/Joel/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:213:103000)\n\tat I.C (file:///c:/Users/Joel/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2328)\n\tat I.D (file:///c:/Users/Joel/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2398)\n\tat I.fire (file:///c:/Users/Joel/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2615)\n\tat JZ.$acceptModelSaved (file:///c:/Users/Joel/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:144:125565)\n\tat LE.S (file:///c:/Users/Joel/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:125501)\n\tat LE.Q (file:///c:/Users/Joel/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:125281)\n\tat LE.M (file:///c:/Users/Joel/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:124370)\n\tat LE.L (file:///c:/Users/Joel/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:123475)\n\tat ef.value (file:///c:/Users/Joel/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:122272)\n\tat I.C (file:///c:/Users/Joel/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2328)\n\tat I.fire (file:///c:/Users/Joel/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2546)\n\tat Jo.fire (file:///c:/Users/Joel/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:9471)\n\tat ef.value (file:///c:/Users/Joel/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:405:9337)\n\tat I.C (file:///c:/Users/Joel/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2328)\n\tat I.fire (file:///c:/Users/Joel/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2546)\n\tat Jo.fire (file:///c:/Users/Joel/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:9471)\n\tat MessagePortMain.\u003canonymous> (file:///c:/Users/Joel/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:405:7571)\n\tat MessagePortMain.emit (node:events:519:28)\n\tat MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2959)] {\n  fromTOML: true,\n  wrapped: null,\n  line: 27,\n  col: 19,\n  pos: 620\n}\n```\n\nSwitching the line ending to LF prevents this error from showing in the logs.\n","author":{"url":"https://github.com/joelspadin","@type":"Person","name":"joelspadin"},"datePublished":"2026-02-21T22:34:47Z","url":"https://github.com/microsoft/vscode-python/issues/25809"}

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:d725b8d6-5a22-c1fb-393c-da7c847f2eac
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9FF6:25598F:CF6E59:1135B98:6B00F976
html-safe-nonce454a42b34010c3e401ea6af1e8cbdc66965378353e0b975fd68f41c1526125df
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkY2OjI1NTk4RjpDRjZFNTk6MTEzNUI5ODo2QjAwRjk3NiIsInZpc2l0b3JfaWQiOiI2NzExNjA5MzMwNjkwNDg4Njk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacbdc6d43f7b6fd4034ff335a5545a6b984706d7920f984aa6f4a10d9cfcb0de2d
hovercard-subject-tagissue:3979397154
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/25809/issue_layout
twitter:imagehttps://opengraph.githubassets.com/922ef2975bb0761036aff620b7bfe0dd1d4ba278a3fc8116a452a9d185b92f64/microsoft/vscode-python/issues/25809
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/922ef2975bb0761036aff620b7bfe0dd1d4ba278a3fc8116a452a9d185b92f64/microsoft/vscode-python/issues/25809
og:image:altEnvironment data Pylance version: 2026.1.1 OS and version: Windows 11 build 26200 Python version (& distribution if applicable, e.g. Anaconda): 3.14.2 Code Snippet [tool.ruff.lint] select = [ # fla...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejoelspadin
hostnamegithub.com
expected-hostnamegithub.com
Nonee208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187
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
release7dafd017fb7809a839c443dba08622af38e63c09
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/vscode-python/issues/25809#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-python%2Fissues%2F25809
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%2F25809
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/25809
Reloadhttps://github.com/microsoft/vscode-python/issues/25809
Reloadhttps://github.com/microsoft/vscode-python/issues/25809
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/25809
New issuehttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/25809
#26232https://github.com/microsoft/vscode-python/pull/26232
Failed to parse pyproject.toml error when pyproject.toml has comments and CRLF line endingshttps://github.com/microsoft/vscode-python/issues/25809#top
#26232https://github.com/microsoft/vscode-python/pull/26232
bugIssue identified by VS Code Team member as probable bughttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/joelspadin
Joel Spadin (joelspadin)https://github.com/joelspadin
on Feb 21, 2026https://github.com/microsoft/vscode-python/issues/25809#issue-3979397154
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Feb 21, 2026https://github.com/microsoft/vscode-python/issues/25809#issuecomment-3946331992
GitHub Actionshttps://help.github.com/en/actions
Joel Spadin (@joelspadin)https://github.com/joelspadin
TOML 1.0.0 parser used in latest release 1.1.285 fails to parse line endings of comments pyright#4367https://github.com/microsoft/pyright/issues/4367
github-actionshttps://github.com/apps/github-actions
Heejae Chang (heejaechang)https://github.com/heejaechang
on Feb 21, 2026https://github.com/microsoft/vscode-python/issues/25809#event-23008769628
https://github.com/rchiodo
Rich Chiodo (rchiodo)https://github.com/rchiodo
on Feb 23, 2026https://github.com/microsoft/vscode-python/issues/25809#issuecomment-3946332025
Rich Chiodo (rchiodo)https://github.com/rchiodo
microsoft/pylance-releasehttps://github.com/microsoft/pylance-release
on Feb 23, 2026https://github.com/microsoft/vscode-python/issues/25809#event-23008770052
Rich Chiodo (rchiodo)https://github.com/rchiodo
Heejae Chang (heejaechang)https://github.com/heejaechang
on Feb 23, 2026https://github.com/microsoft/vscode-python/issues/25809#event-23008771681
github-actionshttps://github.com/apps/github-actions
triage-neededNeeds assignment to the proper sub-teamhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22triage-needed%22
on Feb 23, 2026https://github.com/microsoft/vscode-python/issues/25809#event-23008784343
Anthony Kim (anthonykim1)https://github.com/anthonykim1
bugIssue identified by VS Code Team member as probable bughttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22bug%22
triage-neededNeeds assignment to the proper sub-teamhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22triage-needed%22
on Mar 13, 2026https://github.com/microsoft/vscode-python/issues/25809#event-23558788434
Anthony Kim (anthonykim1)https://github.com/anthonykim1
Eleanor Boyd (eleanorjboyd)https://github.com/eleanorjboyd
on Mar 13, 2026https://github.com/microsoft/vscode-python/issues/25809#event-23558788698
Eduardo Villalpando Mello (edvilme)https://github.com/edvilme
Eleanor Boyd (eleanorjboyd)https://github.com/eleanorjboyd
on Nov 10, 2026https://github.com/microsoft/vscode-python/issues/25809#event-35741708915
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/vscode-python/issues/25809
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/25809
bugIssue identified by VS Code Team member as probable bughttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22bug%22
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.