Title: "[warning] Working directory resolves to different path" due to case-sensitive comparison · Issue #26050 · microsoft/vscode-python · GitHub
Open Graph Title: "[warning] Working directory resolves to different path" due to case-sensitive comparison · Issue #26050 · microsoft/vscode-python
X Title: "[warning] Working directory resolves to different path" due to case-sensitive comparison · Issue #26050 · microsoft/vscode-python
Description: We have written the needed data into your clipboard because it was too large to send. Please paste. Type: Bug Behaviour In many or all Workspaces with an NT path, the Python extension emits
Open Graph Description: We have written the needed data into your clipboard because it was too large to send. Please paste. Type: Bug Behaviour In many or all Workspaces with an NT path, the Python extension emits
X Description: We have written the needed data into your clipboard because it was too large to send. Please paste. Type: Bug Behaviour In many or all Workspaces with an NT path, the Python extension emits <dat...
Opengraph URL: https://github.com/microsoft/vscode-python/issues/26050
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"[warning] Working directory resolves to different path\" due to case-sensitive comparison","articleBody":"We have written the needed data into your clipboard because it was too large to send. Please paste.\n\n\nType: \u003cb>Bug\u003c/b>\n\n\u003c!-- Please fill in all XXX markers -->\n# Behaviour\n\nIn many or all Workspaces with an NT path, the Python extension emits\n\n```\n\u003cdate> \u003ctime> [warning] Working directory resolves to different path: c:\\\u003ccorrect>\\\u003cpath> -> C:\\\u003ccorrect>\\\u003cpath>. Checking for symlinks in parent directories.\n```\n- The only difference is that the first drive letter is always lowercase and the second drive letter is always uppercase.\n- If the mismatch causes other problems, I am not aware of the connection. \n\n\u003cdetails>\u003csummary>Stream-of-consciousness conjecture\u003c/summary>\n\u003cp>\n\nWhen the testing panel is open, every (or almost every) keystroke in the editor causes the Python extension to rescan for tests (pytest configured), so the test tree disappears for a few seconds, then repopulates. To me, it is annoying; however, I have always assumed the system was working as intended, so I never opened an Issue. \n\nBut as I wrote, \"If the mismatch causes other problems, I am not aware of the connection,\" it occurred to me that there is a remote chance the constant refresh is due to the path mismatch. _Pure conjecture, no evidence:_ \n\n1. Because the paths don't match, the extension saves a null value in the \"Working-directory-resolves\" variable. \n2. In a different process, a subroutine monitors for changes that necessitate a test rescan. \n3. The subroutine relies, in part, on the \"Working-directory-resolves\" variable (perhaps to hash file contents or get last-modified data). \n4. The null value in the \"Working-directory-resolves\" variable prevents the subroutine from operating efficiently, \n 1. so on every file save \n 2. (Ah-ha! I have autosave-on-inactivity enabled), \n 3. the subroutine uses its fallback process, which is to \n 4. rescan every file in the workspace.\n\n\n\u003c/p>\n\u003c/details> \n\n\n## Steps to reproduce:\n\n1. Configure the test panel options????\n2. Have a problem in the test panel.\n3. Click on the test panel link to open the output panel.\n4. See the warning that doesn't help you resolve the real problem, such as `pytest` not being installed.\n\n\u003c!--\n**After** creating the issue on GitHub, you can add screenshots and GIFs of what is happening. Consider tools like https://www.cockos.com/licecap/, https://github.com/phw/peek or https://www.screentogif.com/ for GIF creation.\n-->\n\n\u003c!-- **NOTE**: Please do provide logs from Python Output panel. -->\n# Diagnostic data\n\n\u003cdetails>\n\n\u003csummary>Output for \u003ccode>Python\u003c/code> in the \u003ccode>Output\u003c/code> panel (\u003ccode>View\u003c/code>→\u003ccode>Output\u003c/code>, change the drop-down the upper-right of the \u003ccode>Output\u003c/code> panel to \u003ccode>Python\u003c/code>)\n\u003c/summary>\n\n\u003cp>\n\n```\n2026-07-20 14:35:41.508 [info] [test-by-project] Cleaned up 1 test items for workspace: c:\\clones\\python-soundfile\n2026-07-20 14:35:41.508 [info] [test-by-project] Discovering projects for workspace: c:\\clones\\python-soundfile\n2026-07-20 14:35:41.508 [info] [test-by-project] Found 1 total Python projects from API\n2026-07-20 14:35:41.509 [info] [test-by-project] Filtered to 1 projects in workspace\n2026-07-20 14:35:41.509 [info] [test-by-project] Creating adapter for: python-soundfile at file:///c%3A/clones/python-soundfile\n2026-07-20 14:35:41.509 [info] [test-by-project] Registered 1 project(s) for c:\\clones\\python-soundfile\n2026-07-20 14:35:41.510 [info] [test-by-project] Starting discovery for 1 project(s) in workspace\n2026-07-20 14:35:41.510 [info] [test-by-project] Discovering tests for project: python-soundfile (Python 3.14)\n2026-07-20 14:35:41.510 [warning] Working directory resolves to different path: c:\\clones\\python-soundfile -> C:\\clones\\python-soundfile. Checking for symlinks in parent directories.\n2026-07-20 14:35:41.511 [info] arg: --rootdir already exists in args, not adding.\n2026-07-20 14:35:41.511 [info] Environment variables set for pytest discovery: PYTHONPATH=c:\\Users\\hunte\\.vscode-insiders\\extensions\\ms-python.python-2026.5.2026070801-win32-x64\\python_files, TEST_RUN_PIPE=\\\\.\\pipe\\python-test-discovery-ed54e608dab12aeea168\n2026-07-20 14:35:41.511 [info] Using environment extension for pytest discovery in workspace c:\\clones\\python-soundfile\n2026-07-20 14:35:41.518 [info] Started pytest discovery subprocess (environment extension) for workspace c:\\clones\\python-soundfile\n2026-07-20 14:35:41.594 [error] c:\\clones\\python-soundfile\\.venv\\Scripts\\python.exe: No module named pytest\n\n2026-07-20 14:35:41.602 [error] pytest discovery failed with exit code 1 and signal null for workspace c:\\clones\\python-soundfile. Creating error payload.\n2026-07-20 14:35:41.603 [error] pytest test discovery error for workspace: c:\\clones\\python-soundfile \n \n The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null for workspace c:\\clones\\python-soundfile\n2026-07-20 14:35:41.603 [info] Pytest discovery completed for workspace c:\\clones\\python-soundfile\n2026-07-20 14:35:41.603 [info] [test-by-project] Project python-soundfile (Python 3.14) discovery completed\n2026-07-20 14:35:41.603 [info] [test-by-project] Discovery complete: 1/1 projects completed\n\n```\n\n\u003c/p>\n\u003c/details>\n\n---\n\n## More TS info\n\n- the problem has existed for a long time.\n- I don't remember if it has always existed or if there was a starting date.\n- C: is just a plain NTFS drive\n- The problem certainly happens in both of my main directories, c:\\apps and c:\\clones, and maybe others.\n- The directories are not symlinks.\n- Each workspace is a subdirectory, and no workspace is itself a symlink.\n- I have not put effort into troubleshooting; I'm just doing a brain dump of relevant facts.\n\n```cmd\nC:\\>psinfo -d\n\nPsInfo v1.79 - Local and remote system information viewer\nCopyright (C) 2001-2023 Mark Russinovich\nSysinternals - www.sysinternals.com\n\nSystem information for \\\\DUDA:\nUptime: 2 days 20 hours 58 minutes 29 seconds\nKernel version: Windows 10 Pro, Multiprocessor Free\nProduct type: Professional\nProduct version: 6.3\nService pack: 0\nKernel build number: 26200\nRegistered organization:\nRegistered owner: nunya\nIE version: 9.0000\nSystem root: C:\\WINDOWS\nProcessors: 16\nProcessor speed: 1.8 GHz\nProcessor type: AMD Ryzen 7 5700U with Radeon Graphics\nPhysical memory: 13214 MB\nVideo driver: AMD Radeon(TM) Graphics\nVolume Type Format Label Size Free Free\n C: Fixed NTFS 929.56 GB 295.05 GB 31.7%\n G: Fixed FAT32 Google Drive 15.00 GB 13.84 GB 92.3%\n\nC:\\>dir /ad\n...\n05/07/2024 02:08 PM \u003cDIR> $AV_AVG\n05/06/2024 11:12 PM \u003cDIR> $RECYCLE.BIN\n06/10/2026 05:51 AM \u003cDIR> AMD\n06/30/2026 11:59 AM \u003cDIR> apps\n07/12/2026 04:14 PM \u003cDIR> clones\n06/05/2021 06:47 AM \u003cDIR> Config.Msi\n...\n\nC:\\>dir /al\n Volume in drive C has no label.\n Volume Serial Number is EE8F-7C8C\n\n Directory of C:\\\n\n05/07/2024 10:50 AM \u003cJUNCTION> Documents and Settings [C:\\Users]\n 0 File(s) 0 bytes\n 1 Dir(s) 316,805,861,376 bytes free\n\nC:\\>dir \\apps \\clones /al /b\nFile Not Found\nFile Not Found\n```\n\n---\n\nExtension version: 2026.5.2026070801\nVS Code version: Code - Insiders 1.130.0-insider (e586b8ac6e718785ed7271c162794c04f8d85648, 2026-07-20T04:43:17Z)\nOS version: Windows_NT x64 10.0.26200\nModes:\n\n\u003cdetails>\n\u003csummary>System Info\u003c/summary>\n\n|Item|Value|\n|---|---|\n|CPUs|AMD Ryzen 7 5700U with Radeon Graphics (16 x 1797)|\n|GPU Status|2d_canvas: enabled\u003cbr>GPU0: VENDOR= 0x1002, DEVICE=0x164c [AMD Radeon(TM) Graphics], DRIVER_VENDOR=AMD, DRIVER_VERSION=31.0.21925.1001 *ACTIVE*\u003cbr>GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8875\u003cbr>Machine model name: \u003cbr>Machine model version: \u003cbr>direct_rendering_display_compositor: disabled_off_ok\u003cbr>gpu_compositing: enabled\u003cbr>multiple_raster_threads: enabled_on\u003cbr>opengl: enabled_on\u003cbr>rasterization: enabled\u003cbr>raw_draw: disabled_off_ok\u003cbr>skia_graphite: disabled_off\u003cbr>trees_in_viz: disabled_off\u003cbr>video_decode: enabled\u003cbr>video_encode: enabled\u003cbr>webgl: enabled\u003cbr>webgpu: enabled\u003cbr>webnn: disabled_off|\n|Load (avg)|undefined|\n|Memory (System)|12.90GB (1.88GB free)|\n|Process Argv||\n|Screen Reader|no|\n|VM|0%|\n\u003c/details>\n\u003c!-- generated by issue reporter -->","author":{"url":"https://github.com/hunterhogan","@type":"Person","name":"hunterhogan"},"datePublished":"2026-07-20T20:43:25Z","url":"https://github.com/microsoft/vscode-python/issues/26050"}
| 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:8909346d-575e-2629-2e91-676214ce063c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE7C:311640:CFFF79:10923DB:6B0102A4 |
| html-safe-nonce | 4fb57cc9e7fc46d5d409601ef41e8a88ce715dde8f3187d835dccc29c351c0dc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTdDOjMxMTY0MDpDRkZGNzk6MTA5MjNEQjo2QjAxMDJBNCIsInZpc2l0b3JfaWQiOiI2ODQwODkzNzczMzU0OTU5NTI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1f1935f9aff0443bf78b22242c1936d0671fb2c0ba64b5ea240c00693ccab502 |
| hovercard-subject-tag | issue:4932920439 |
| 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/26050/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1bf0e0a32b9136801c735ec032bfc730f29d550f415902938aad9536de4dd9c1/microsoft/vscode-python/issues/26050 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1bf0e0a32b9136801c735ec032bfc730f29d550f415902938aad9536de4dd9c1/microsoft/vscode-python/issues/26050 |
| og:image:alt | We have written the needed data into your clipboard because it was too large to send. Please paste. Type: Bug Behaviour In many or all Workspaces with an NT path, the Python extension emits |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hunterhogan |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width