Title: Missing leading semicolon when appending to PATH on Windows · Issue #882 · microsoft/vscode-python-debugger · GitHub
Open Graph Title: Missing leading semicolon when appending to PATH on Windows · Issue #882 · microsoft/vscode-python-debugger
X Title: Missing leading semicolon when appending to PATH on Windows · Issue #882 · microsoft/vscode-python-debugger
Description: Type: Bug Context: VS Code version: 1.106.3 (user setup) Extension version: 2025.16.0 OS: Windows 11 Enterprise 24H2 (26100.7171) Shell: PowerShell 7.5.4 UV .venv (uv 0.9.9 (4fac4cb7e 2025-11-12)) Behaviour: When the debugpy extension ap...
Open Graph Description: Type: Bug Context: VS Code version: 1.106.3 (user setup) Extension version: 2025.16.0 OS: Windows 11 Enterprise 24H2 (26100.7171) Shell: PowerShell 7.5.4 UV .venv (uv 0.9.9 (4fac4cb7e 2025-11-12)) ...
X Description: Type: Bug Context: VS Code version: 1.106.3 (user setup) Extension version: 2025.16.0 OS: Windows 11 Enterprise 24H2 (26100.7171) Shell: PowerShell 7.5.4 UV .venv (uv 0.9.9 (4fac4cb7e 2025-11-12)) ...
Opengraph URL: https://github.com/microsoft/vscode-python-debugger/issues/882
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Missing leading semicolon when appending to PATH on Windows","articleBody":"**Type:** Bug\n\n**Context:**\n- VS Code version: 1.106.3 (user setup)\n- Extension version: ``2025.16.0``\n- OS: Windows 11 Enterprise 24H2 (26100.7171)\n- Shell: PowerShell 7.5.4\n- UV .venv (``uv 0.9.9 (4fac4cb7e 2025-11-12)``)\n\n**Behaviour:**\n\nWhen the debugpy extension appends its path to the ``PATH`` environment variable, it does not check if the existing PATH ends with a semicolon. If another tool (e.g., Bun) writes a PATH entry without a trailing semicolon, the paths get concatenated:\n```\nC:\\Users\\ggrondin.ext\\.bun\\binc:\\Users\\ggrondin.ext\\.vscode\\extensions\\ms-python.debugpy-2025.16.0-win32-x64\\bundled\\scripts\\noConfigScripts\n```\n\n**Expected:**\n\nThe extension should either:\n- Prepend a semicolon before adding its path, or\n- Check if the existing PATH ends with a semicolon and add one if missing\n\n**Steps to reproduce:**\n\n1. Have a PATH entry that does not end with a semicolon (e.g., current version of bun).\n2. Open a Python project with a venv in VSCode (e.g, current version of uv (``uv 0.9.9 (4fac4cb7e 2025-11-12)``)).\n3. Open an integrated terminal.\n4. Check ``$env:PATH`` — the paths are concatenated without separator.\n\n**Note:**\n\nThis might be related to (but probably different from) #740 which fixed double semicolons (``;;``). This issue is about the missing leading semicolon when appending (most probably).\n\nRelated: https://github.com/oven-sh/bun/issues/16811","author":{"url":"https://github.com/GGLinnk-ReadOnly","@type":"Person","name":"GGLinnk-ReadOnly"},"datePublished":"2025-12-03T09:18:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/882/vscode-python-debugger/issues/882"}
| 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:3213ef32-5b3c-9f5a-9d58-e763d751d85b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BAB8:AA2D6:1B9FE43:253B303:69807330 |
| html-safe-nonce | a06238e94152444e4921db82dbe66ddd50c85036e8985cc34da2f234ab6cfeee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUI4OkFBMkQ2OjFCOUZFNDM6MjUzQjMwMzo2OTgwNzMzMCIsInZpc2l0b3JfaWQiOiIzNzUyNzg5MzMwOTA1NTU5ODU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1483621b1bf3c1da84b2eeea039ac5154c5932ab9228f15e19ad1daa77303a18 |
| hovercard-subject-tag | issue:3689265988 |
| 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-debugger/882/issue_layout |
| twitter:image | https://opengraph.githubassets.com/edbf7b83f27635506a8e33d5c633038449809f1af453ac83a09d9fd87f8e504b/microsoft/vscode-python-debugger/issues/882 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/edbf7b83f27635506a8e33d5c633038449809f1af453ac83a09d9fd87f8e504b/microsoft/vscode-python-debugger/issues/882 |
| og:image:alt | Type: Bug Context: VS Code version: 1.106.3 (user setup) Extension version: 2025.16.0 OS: Windows 11 Enterprise 24H2 (26100.7171) Shell: PowerShell 7.5.4 UV .venv (uv 0.9.9 (4fac4cb7e 2025-11-12)) ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GGLinnk-ReadOnly |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0959b1a93ca48b0c88b3bddbdfd04ca43f388cb1a8293105a28c5ef6e8079db8 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-python-debugger git https://github.com/microsoft/vscode-python-debugger.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 615045081 |
| octolytics-dimension-repository_nwo | microsoft/vscode-python-debugger |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 615045081 |
| octolytics-dimension-repository_network_root_nwo | microsoft/vscode-python-debugger |
| 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 | 78307334c66591a8f87f493dd2968126b34961dd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width