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
Domain: github.com
{"@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-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d725b8d6-5a22-c1fb-393c-da7c847f2eac |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9FF6:25598F:CF6E59:1135B98:6B00F976 |
| html-safe-nonce | 454a42b34010c3e401ea6af1e8cbdc66965378353e0b975fd68f41c1526125df |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkY2OjI1NTk4RjpDRjZFNTk6MTEzNUI5ODo2QjAwRjk3NiIsInZpc2l0b3JfaWQiOiI2NzExNjA5MzMwNjkwNDg4Njk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bdc6d43f7b6fd4034ff335a5545a6b984706d7920f984aa6f4a10d9cfcb0de2d |
| hovercard-subject-tag | issue:3979397154 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/vscode-python/25809/issue_layout |
| twitter:image | https://opengraph.githubassets.com/922ef2975bb0761036aff620b7bfe0dd1d4ba278a3fc8116a452a9d185b92f64/microsoft/vscode-python/issues/25809 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/922ef2975bb0761036aff620b7bfe0dd1d4ba278a3fc8116a452a9d185b92f64/microsoft/vscode-python/issues/25809 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | joelspadin |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-python git https://github.com/microsoft/vscode-python.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 106462765 |
| octolytics-dimension-repository_nwo | microsoft/vscode-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 49946255 |
| octolytics-dimension-repository_parent_nwo | DonJayamanne/pythonVSCode |
| octolytics-dimension-repository_network_root_id | 49946255 |
| octolytics-dimension-repository_network_root_nwo | DonJayamanne/pythonVSCode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width