Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyTest will not detect tests in latest version. 2024.8.0 works fine. #23969

Closed
Joseph-Garvey opened this issue Aug 19, 2024 · 3 comments
Closed
Assignees
Labels
area-native-locator Issues with Rust based python locator bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) regression Bug didn't exist in a previous release

Comments

@Joseph-Garvey
Copy link

Joseph-Garvey commented Aug 19, 2024

Type: Bug

Behaviour

This issue has already been raised on another repo: palvarezc/cavendish-particle-tracks#96
Went to run tests on https://github.com/palvarezc/cavendish-particle-tracks
Tests ran successfully on Friday.
Python extension auto-updated on Monday and tests can no longer be found.
Rolling back a week of updates did not fix. Rolling back 2 months to 2024.8.0 it now works as expected.
Sometimes it would output the following, other times it would stop discovering.

Steps to reproduce:

  1. Initiliase a python repository with some tests using PyTest.
  2. Attempt to run tests.

Python Output Log

2024-08-19 14:06:03.563 [info] Experiment 'pythonaa' is active
2024-08-19 14:06:03.563 [info] Experiment 'pythonCreateEnvOnPipInstall' is active
2024-08-19 14:06:03.563 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-08-19 14:06:03.563 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-08-19 14:06:03.563 [info] Experiment 'pythonTestAdapter' is active
2024-08-19 14:06:03.563 [info] Native locator: Refresh started
2024-08-19 14:06:03.563 [info] Default formatter is set to ms-python.black-formatter for workspace c:\Users\josep\Desktop\Particle Tracks\cavendish-particle-tracks
2024-08-19 14:06:03.563 [info] > pyenv which python
2024-08-19 14:06:03.563 [info] cwd: ~\Desktop\Particle Tracks\cavendish-particle-tracks
2024-08-19 14:06:03.570 [info] Conda environment manager found at: C:\ProgramData\anaconda3\Scripts\conda.exe
2024-08-19 14:06:03.573 [info] Python interpreter path: ~\.conda\envs\napari-env\python.exe
2024-08-19 14:06:03.592 [info] Native locator: Refresh finished in 390 ms
2024-08-19 14:06:03.758 [info] > conda info --json
2024-08-19 14:06:03.758 [info] shell: powershell
2024-08-19 14:06:04.343 [info] Discover tests for workspace name: cavendish-particle-tracks - uri: c:\Users\josep\Desktop\Particle Tracks\cavendish-particle-tracks\.vscode\settings.json
2024-08-19 14:06:04.343 [info] Running discovery for pytest using the new test adapter.
2024-08-19 14:06:04.344 [warning] The cwd resolves to a different path, checking if it has a symbolic link somewhere in its path.
2024-08-19 14:06:04.346 [info] All environment variables set for pytest discovery: {"ALLUSERSPROFILE":"C:\\ProgramData","APPDATA":"C:\\Users\\josep\\AppData\\Roaming","CHROME_CRASHPAD_PIPE_NAME":"\\\\.\\pipe\\crashpad_36472_HSZYTGMNHRGZRXPX","COMPUTERNAME":"LAPTOP-TLC5JM8B","ELECTRON_RUN_AS_NODE":"1","HOMEDRIVE":"C:","HOMEPATH":"\\Users\\josep","LOCALAPPDATA":"C:\\Users\\josep\\AppData\\Local","LOGONSERVER":"\\\\LAPTOP-TLC5JM8B","NUMBER_OF_PROCESSORS":"16","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","OS":"Windows_NT","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"AMD64 Family 25 Model 80 Stepping 0, AuthenticAMD","PROCESSOR_LEVEL":"25","PROCESSOR_REVISION":"5000","PUBLIC":"C:\\Users\\Public","SESSIONNAME":"Console","TEMP":"C:\\Users\\josep\\AppData\\Local\\Temp","TMP":"C:\\Users\\josep\\AppData\\Local\\Temp","USERDOMAIN":"LAPTOP-TLC5JM8B","USERDOMAIN_ROAMINGPROFILE":"LAPTOP-TLC5JM8B","USERNAME":"gravye","USERPROFILE":"C:\\Users\\josep","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CODE_CACHE_PATH":"C:\\Users\\josep\\AppData\\Roaming\\Code\\CachedData\\fee1edb8d6d72a0ddff41e5f71a671c23ed924b9","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"C:\\Users\\josep\\AppData\\Local\\Programs\\Microsoft VS Code","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"\\\\.\\pipe\\801452dc-1.92.2-main-sock","VSCODE_L10N_BUNDLE_LOCATION":"","VSCODE_NLS_CONFIG":"{\"userLocale\":\"en-us\",\"osLocale\":\"en-gb\",\"resolvedLanguage\":\"en\",\"defaultMessagesFile\":\"C:\\\\Users\\\\josep\\\\AppData\\\\Local\\\\Programs\\\\Microsoft VS Code\\\\resources\\\\app\\\\out\\\\nls.messages.json\",\"locale\":\"en\",\"availableLanguages\":{}}","VSCODE_PID":"36472","ACSetupSvcPort":"23210","ACSvcPort":"17532","ComSpec":"C:\\WINDOWS\\system32\\cmd.exe","CommonProgramFiles":"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files","CommonProgramW6432":"C:\\Program Files\\Common Files","DriverData":"C:\\Windows\\System32\\Drivers\\DriverData","OneDrive":"C:\\Users\\josep\\OneDrive - University of Cambridge","OneDriveCommercial":"C:\\Users\\josep\\OneDrive - University of Cambridge","PSModulePath":"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules","ProgramData":"C:\\ProgramData","ProgramFiles":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramW6432":"C:\\Program Files","RlsSvcPort":"22112","SystemDrive":"C:","SystemRoot":"C:\\WINDOWS","windir":"C:\\WINDOWS","Path":"C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Users\\josep\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\josep\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\josep\\.dotnet\\tools","PYTHONPATH":"c:\\Users\\josep\\.vscode\\extensions\\ms-python.python-2024.12.1-win32-x64\\python_files","TEST_RUN_PIPE":"\\\\.\\pipe\\python-test-discovery-150250050de6883f25f6-sock"}
2024-08-19 14:06:04.354 [info] > C:\ProgramData\anaconda3\Scripts\conda.exe info --json
2024-08-19 14:06:04.739 [info] Discover tests for workspace name: cavendish-particle-tracks - uri: c:\Users\josep\Desktop\Particle Tracks\cavendish-particle-tracks
2024-08-19 14:06:04.739 [info] Running discovery for pytest using the new test adapter.
2024-08-19 14:06:04.739 [error] Test discovery already in progress, not starting a new one.
2024-08-19 14:06:04.773 [info] > C:\ProgramData\anaconda3\Scripts\conda.exe info --json
2024-08-19 14:06:04.773 [info] shell: powershell
2024-08-19 14:06:05.041 [info] Discover tests for workspace name: cavendish-particle-tracks - uri: c:\Users\josep\Desktop\Particle Tracks\cavendish-particle-tracks
2024-08-19 14:06:05.041 [info] Running discovery for pytest using the new test adapter.
2024-08-19 14:06:05.042 [error] Test discovery already in progress, not starting a new one.
2024-08-19 14:06:05.502 [info] Starting Pylance language server.
2024-08-19 14:06:08.127 [info] > C:\ProgramData\anaconda3\Scripts\conda.exe run -n napari-env --no-capture-output python ~\.vscode\extensions\ms-python.python-2024.12.1-win32-x64\python_files\get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.12.1-win32-x64/python_files/printEnvVariables.py
2024-08-19 14:06:08.127 [info] shell: commandPrompt
2024-08-19 14:06:08.142 [info] > C:\ProgramData\anaconda3\condabin\conda.bat info --json
2024-08-19 14:06:08.142 [info] shell: powershell
2024-08-19 14:06:09.800 [info] > pixi --version
2024-08-19 14:06:09.801 [error] Error: spawn pixi ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn pixi',
  path: 'pixi',
  spawnargs: [ '--version' ]
}
2024-08-19 14:06:09.801 [warning] could not find a pixi interpreter for the interpreter at C:\Users\josep\.conda\envs\napari-env\python.exe
2024-08-19 14:06:09.827 [info] > python -m pytest -p vscode_pytest --collect-only ./tests --no-cov
2024-08-19 14:06:09.827 [info] cwd: ~\Desktop\Particle Tracks\cavendish-particle-tracks
2024-08-19 14:06:09.904 [error] Python was not found; run without arguments to install from the
2024-08-19 14:06:09.904 [error]  Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

2024-08-19 14:06:09.910 [error] Subprocess exited unsuccessfully with exit code 9009 and signal null on workspace c:\Users\josep\Desktop\Particle Tracks\cavendish-particle-tracks.
2024-08-19 14:06:09.910 [error] Subprocess exited unsuccessfully with exit code 9009 and signal null on workspace c:\Users\josep\Desktop\Particle Tracks\cavendish-particle-tracks. Creating and sending error discovery payload
2024-08-19 14:06:09.911 [error] pytest test discovery error for workspace:  c:\Users\josep\Desktop\Particle Tracks\cavendish-particle-tracks 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 9009, Signal: null for workspace c:\Users\josep\Desktop\Particle Tracks\cavendish-particle-tracks
2024-08-19 14:06:10.028 [info] > C:\ProgramData\anaconda3\Scripts\conda.exe run -n napari-env --no-capture-output python ~\.vscode\extensions\ms-python.python-2024.12.1-win32-x64\python_files\get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.12.1-win32-x64/python_files/printEnvVariables.py
2024-08-19 14:06:10.028 [info] shell: powershell
2024-08-19 14:06:12.119 [info] > python ~/.vscode/extensions/ms-python.python-2024.12.1-win32-x64/python_files/printEnvVariables.py
2024-08-19 14:06:12.119 [info] shell: powershell
2024-08-19 14:06:12.386 [info] Setting environment variable CONDA_DEFAULT_ENV in collection to napari-env {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-08-19 14:06:12.386 [info] Setting environment variable CONDA_EXE in collection to C:\ProgramData\anaconda3\Scripts\conda.exe {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-08-19 14:06:12.386 [info] Setting environment variable CONDA_PREFIX in collection to C:\Users\josep\.conda\envs\napari-env {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-08-19 14:06:12.386 [info] Setting environment variable CONDA_PROMPT_MODIFIER in collection to (napari-env)  {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-08-19 14:06:12.386 [info] Setting environment variable CONDA_PYTHON_EXE in collection to C:\ProgramData\anaconda3\python.exe {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-08-19 14:06:12.387 [info] Setting environment variable CONDA_SHLVL in collection to 1 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-08-19 14:06:12.387 [info] Prepending environment variable PATH in collection to C:\Users\josep\.conda\envs\napari-env;C:\Users\josep\.conda\envs\napari-env\Library\mingw-w64\bin;C:\Users\josep\.conda\envs\napari-env\Library\usr\bin;C:\Users\josep\.conda\envs\napari-env\Library\bin;C:\Users\josep\.conda\envs\napari-env\Scripts;C:\Users\josep\.conda\envs\napari-env\bin;C:\ProgramData\anaconda3\condabin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files\Git\cmd;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Users\josep\AppData\Local\Microsoft\WindowsApps;C:\Users\josep\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\josep\.dotnet\tools; {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-08-19 14:06:12.387 [info] Setting environment variable PATHEXT in collection to .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-08-19 14:06:12.387 [info] Setting environment variable PROMPT in collection to (napari-env) $P$G {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-08-19 14:06:12.387 [info] Setting environment variable PSMODULEPATH in collection to C:\Users\josep\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-08-19 14:06:12.387 [info] Setting environment variable PYTHONIOENCODING in collection to utf-8 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-08-19 14:06:12.387 [info] Setting environment variable PYTHONUNBUFFERED in collection to 1 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-08-19 14:06:12.387 [info] Setting environment variable SSL_CERT_DIR in collection to C:\Users\josep\.conda\envs\napari-env\Library\ssl\certs {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-08-19 14:06:12.387 [info] Setting environment variable SSL_CERT_FILE in collection to C:\Users\josep\.conda\envs\napari-env\Library\ssl\cacert.pem {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-08-19 14:06:12.387 [info] Setting environment variable CONDA_ROOT in collection to C:\ProgramData\anaconda3 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-08-19 14:06:12.387 [info] Setting environment variable XML_CATALOG_FILES in collection to file:///C:/Users/josep/.conda/envs/napari-env/etc/xml/catalog {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-08-19 14:06:12.387 [info] Setting environment variable _CONDA_OLD_CHCP in collection to 850 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-08-19 14:06:12.387 [info] Setting environment variable __CONDA_OPENSSL_CERT_DIR_SET in collection to "1" {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-08-19 14:06:12.387 [info] Setting environment variable __CONDA_OPENSSL_CERT_FILE_SET in collection to "1" {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-08-19 14:06:12.387 [info] Send text to terminal: & python c:\Users\josep\.vscode\extensions\ms-python.python-2024.12.1-win32-x64\python_files\printEnvVariablesToFile.py c:\Users\josep\.vscode\extensions\ms-python.python-2024.12.1-win32-x64\python_files\deactivate\powershell\envVars.txt
2024-08-19 14:06:21.572 [info] Discover tests for workspace name: cavendish-particle-tracks - uri: c:\Users\josep\Desktop\Particle Tracks\cavendish-particle-tracks\.vscode\settings.json
2024-08-19 14:06:21.572 [info] Running discovery for pytest using the new test adapter.
2024-08-19 14:06:21.573 [warning] The cwd resolves to a different path, checking if it has a symbolic link somewhere in its path.
2024-08-19 14:06:21.573 [info] All environment variables set for pytest discovery: {"ALLUSERSPROFILE":"C:\\ProgramData","APPDATA":"C:\\Users\\josep\\AppData\\Roaming","CHROME_CRASHPAD_PIPE_NAME":"\\\\.\\pipe\\crashpad_36472_HSZYTGMNHRGZRXPX","COMPUTERNAME":"LAPTOP-TLC5JM8B","ELECTRON_RUN_AS_NODE":"1","HOMEDRIVE":"C:","HOMEPATH":"\\Users\\josep","LOCALAPPDATA":"C:\\Users\\josep\\AppData\\Local","LOGONSERVER":"\\\\LAPTOP-TLC5JM8B","NUMBER_OF_PROCESSORS":"16","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","OS":"Windows_NT","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"AMD64 Family 25 Model 80 Stepping 0, AuthenticAMD","PROCESSOR_LEVEL":"25","PROCESSOR_REVISION":"5000","PUBLIC":"C:\\Users\\Public","SESSIONNAME":"Console","TEMP":"C:\\Users\\josep\\AppData\\Local\\Temp","TMP":"C:\\Users\\josep\\AppData\\Local\\Temp","USERDOMAIN":"LAPTOP-TLC5JM8B","USERDOMAIN_ROAMINGPROFILE":"LAPTOP-TLC5JM8B","USERNAME":"gravye","USERPROFILE":"C:\\Users\\josep","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CODE_CACHE_PATH":"C:\\Users\\josep\\AppData\\Roaming\\Code\\CachedData\\fee1edb8d6d72a0ddff41e5f71a671c23ed924b9","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"C:\\Users\\josep\\AppData\\Local\\Programs\\Microsoft VS Code","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"\\\\.\\pipe\\801452dc-1.92.2-main-sock","VSCODE_L10N_BUNDLE_LOCATION":"","VSCODE_NLS_CONFIG":"{\"userLocale\":\"en-us\",\"osLocale\":\"en-gb\",\"resolvedLanguage\":\"en\",\"defaultMessagesFile\":\"C:\\\\Users\\\\josep\\\\AppData\\\\Local\\\\Programs\\\\Microsoft VS Code\\\\resources\\\\app\\\\out\\\\nls.messages.json\",\"locale\":\"en\",\"availableLanguages\":{}}","VSCODE_PID":"36472","ACSetupSvcPort":"23210","ACSvcPort":"17532","ComSpec":"C:\\WINDOWS\\system32\\cmd.exe","CommonProgramFiles":"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files","CommonProgramW6432":"C:\\Program Files\\Common Files","DriverData":"C:\\Windows\\System32\\Drivers\\DriverData","OneDrive":"C:\\Users\\josep\\OneDrive - University of Cambridge","OneDriveCommercial":"C:\\Users\\josep\\OneDrive - University of Cambridge","PSModulePath":"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules","ProgramData":"C:\\ProgramData","ProgramFiles":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramW6432":"C:\\Program Files","RlsSvcPort":"22112","SystemDrive":"C:","SystemRoot":"C:\\WINDOWS","windir":"C:\\WINDOWS","Path":"C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Users\\josep\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\josep\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\josep\\.dotnet\\tools","PYTHONPATH":"c:\\Users\\josep\\.vscode\\extensions\\ms-python.python-2024.12.1-win32-x64\\python_files","TEST_RUN_PIPE":"\\\\.\\pipe\\python-test-discovery-e2275f3f664681c9ffc7-sock"}
2024-08-19 14:06:21.574 [warning] could not find a pixi interpreter for the interpreter at C:\Users\josep\.conda\envs\napari-env\python.exe
2024-08-19 14:06:21.592 [info] > python -m pytest -p vscode_pytest --collect-only tests --no-cov
2024-08-19 14:06:21.592 [info] cwd: ~\Desktop\Particle Tracks\cavendish-particle-tracks
2024-08-19 14:06:21.657 [error] Python was not found; run without arguments to install from t
2024-08-19 14:06:21.657 [error] he Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

2024-08-19 14:06:21.663 [error] Subprocess exited unsuccessfully with exit code 9009 and signal null on workspace c:\Users\josep\Desktop\Particle Tracks\cavendish-particle-tracks.
2024-08-19 14:06:21.663 [error] Subprocess exited unsuccessfully with exit code 9009 and signal null on workspace c:\Users\josep\Desktop\Particle Tracks\cavendish-particle-tracks. Creating and sending error discovery payload
2024-08-19 14:06:21.663 [error] pytest test discovery error for workspace:  c:\Users\josep\Desktop\Particle Tracks\cavendish-particle-tracks 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 9009, Signal: null for workspace c:\Users\josep\Desktop\Particle Tracks\cavendish-particle-tracks
2024-08-19 14:06:22.278 [info] Discover tests for workspace name: cavendish-particle-tracks - uri: c:\Users\josep\Desktop\Particle Tracks\cavendish-particle-tracks
2024-08-19 14:06:22.278 [info] Running discovery for pytest using the new test adapter.
2024-08-19 14:06:22.279 [warning] The cwd resolves to a different path, checking if it has a symbolic link somewhere in its path.
2024-08-19 14:06:22.279 [info] All environment variables set for pytest discovery: {"ALLUSERSPROFILE":"C:\\ProgramData","APPDATA":"C:\\Users\\josep\\AppData\\Roaming","CHROME_CRASHPAD_PIPE_NAME":"\\\\.\\pipe\\crashpad_36472_HSZYTGMNHRGZRXPX","COMPUTERNAME":"LAPTOP-TLC5JM8B","ELECTRON_RUN_AS_NODE":"1","HOMEDRIVE":"C:","HOMEPATH":"\\Users\\josep","LOCALAPPDATA":"C:\\Users\\josep\\AppData\\Local","LOGONSERVER":"\\\\LAPTOP-TLC5JM8B","NUMBER_OF_PROCESSORS":"16","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","OS":"Windows_NT","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"AMD64 Family 25 Model 80 Stepping 0, AuthenticAMD","PROCESSOR_LEVEL":"25","PROCESSOR_REVISION":"5000","PUBLIC":"C:\\Users\\Public","SESSIONNAME":"Console","TEMP":"C:\\Users\\josep\\AppData\\Local\\Temp","TMP":"C:\\Users\\josep\\AppData\\Local\\Temp","USERDOMAIN":"LAPTOP-TLC5JM8B","USERDOMAIN_ROAMINGPROFILE":"LAPTOP-TLC5JM8B","USERNAME":"gravye","USERPROFILE":"C:\\Users\\josep","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CODE_CACHE_PATH":"C:\\Users\\josep\\AppData\\Roaming\\Code\\CachedData\\fee1edb8d6d72a0ddff41e5f71a671c23ed924b9","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"C:\\Users\\josep\\AppData\\Local\\Programs\\Microsoft VS Code","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"\\\\.\\pipe\\801452dc-1.92.2-main-sock","VSCODE_L10N_BUNDLE_LOCATION":"","VSCODE_NLS_CONFIG":"{\"userLocale\":\"en-us\",\"osLocale\":\"en-gb\",\"resolvedLanguage\":\"en\",\"defaultMessagesFile\":\"C:\\\\Users\\\\josep\\\\AppData\\\\Local\\\\Programs\\\\Microsoft VS Code\\\\resources\\\\app\\\\out\\\\nls.messages.json\",\"locale\":\"en\",\"availableLanguages\":{}}","VSCODE_PID":"36472","ACSetupSvcPort":"23210","ACSvcPort":"17532","ComSpec":"C:\\WINDOWS\\system32\\cmd.exe","CommonProgramFiles":"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files","CommonProgramW6432":"C:\\Program Files\\Common Files","DriverData":"C:\\Windows\\System32\\Drivers\\DriverData","OneDrive":"C:\\Users\\josep\\OneDrive - University of Cambridge","OneDriveCommercial":"C:\\Users\\josep\\OneDrive - University of Cambridge","PSModulePath":"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules","ProgramData":"C:\\ProgramData","ProgramFiles":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramW6432":"C:\\Program Files","RlsSvcPort":"22112","SystemDrive":"C:","SystemRoot":"C:\\WINDOWS","windir":"C:\\WINDOWS","Path":"C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Users\\josep\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\josep\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\josep\\.dotnet\\tools","PYTHONPATH":"c:\\Users\\josep\\.vscode\\extensions\\ms-python.python-2024.12.1-win32-x64\\python_files","TEST_RUN_PIPE":"\\\\.\\pipe\\python-test-discovery-ffff162c622e334ef254-sock"}
2024-08-19 14:06:22.280 [warning] could not find a pixi interpreter for the interpreter at C:\Users\josep\.conda\envs\napari-env\python.exe
2024-08-19 14:06:22.299 [info] > python -m pytest -p vscode_pytest --collect-only tests --no-cov
2024-08-19 14:06:22.299 [info] cwd: ~\Desktop\Particle Tracks\cavendish-particle-tracks
2024-08-19 14:06:22.367 [error] Python was not found; run without arguments to install from the Micr
2024-08-19 14:06:22.367 [error] osoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

2024-08-19 14:06:22.373 [error] Subprocess exited unsuccessfully with exit code 9009 and signal null on workspace c:\Users\josep\Desktop\Particle Tracks\cavendish-particle-tracks.
2024-08-19 14:06:22.373 [error] Subprocess exited unsuccessfully with exit code 9009 and signal null on workspace c:\Users\josep\Desktop\Particle Tracks\cavendish-particle-tracks. Creating and sending error discovery payload
2024-08-19 14:06:22.373 [error] pytest test discovery error for workspace:  c:\Users\josep\Desktop\Particle Tracks\cavendish-particle-tracks 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 9009, Signal: null for workspace c:\Users\josep\Desktop\Particle Tracks\cavendish-particle-tracks
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

Extension version: 2024.8.0
VS Code version: Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z)
OS version: Windows_NT x64 10.0.19045
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.10.14
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
  • Value of the python.languageServer setting: Default
User Settings


languageServer: "Pylance"

testing
• pytestArgs: "<placeholder>"
• pytestEnabled: true

Installed Extensions
Extension Name Extension Id Version
Arduino vsciot-vscode.vscode-arduino 0.6.0
Black Formatter ms-python.black-formatter 2024.2.0
C/C++ ms-vscode.cpptools 1.21.6
C/C++ Extension Pack ms-vscode.cpptools-extension-pack 1.3.0
C/C++ Themes ms-vscode.cpptools-themes 2.0.0
CMake twxs.cmake 0.0.17
CMake Tools ms-vscode.cmake-tools 1.18.44
Git Graph mhutchie.git-graph 1.30.0
Git History donjayamanne.githistory 0.6.20
GitHub Actions github.vscode-github-actions 0.26.3
GitHub Copilot GitHub.copilot 1.223.0
GitHub Copilot Chat GitHub.copilot-chat 0.18.2
GitHub Pull Requests GitHub.vscode-pull-request-github 0.94.0
GitLens — Git supercharged eamodio.gitlens 15.3.0
HTML Preview george-alisson.html-preview-vscode 0.2.5
IntelliCode VisualStudioExptTeam.vscodeintellicode 1.3.1
IntelliCode API Usage Examples VisualStudioExptTeam.intellicode-api-usage-examples 0.2.8
isort ms-python.isort 2023.10.1
JavaScript Debugger ms-vscode.js-debug 1.92.0
JavaScript Debugger Companion Extension ms-vscode.js-debug-companion 1.1.3
Jira and Bitbucket (Atlassian Labs) atlassian.atlascode 3.0.10
Jupyter ms-toolsai.jupyter 2024.7.0
Jupyter Cell Tags ms-toolsai.vscode-jupyter-cell-tags 0.1.9
Jupyter Keymap ms-toolsai.jupyter-keymap 1.1.2
Jupyter Notebook Renderers ms-toolsai.jupyter-renderers 1.0.19
Jupyter Slide Show ms-toolsai.vscode-jupyter-slideshow 0.1.6
Markdown All in One yzhang.markdown-all-in-one 3.6.2
Pylance ms-python.vscode-pylance 2024.8.1
Python ms-python.python 2024.8.0
Python Debugger ms-python.debugpy 2024.10.0
Rainbow CSV mechatroner.rainbow-csv 3.12.0
Reload natqe.reload 0.0.7
Ruff charliermarsh.ruff 2024.42.0
Select Compare Tabs outofsync42.select-compare-tabs 1.0.3
Serial Monitor ms-vscode.vscode-serial-monitor 0.12.0
Table Visualizer for JavaScript Profiles ms-vscode.vscode-js-profile-table 1.0.9
vscode-pdf tomoki1207.pdf 1.2.2
YAML redhat.vscode-yaml 1.15.0
System Info
Item Value
CPUs AMD Ryzen 7 5800HS with Radeon Graphics (16 x 3194)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 15.41GB (3.18GB free)
Process Argv --crash-reporter-id 368224f6-5426-4209-af9b-9016e65f668e
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
0ee40948:31013168
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
impr_priority:31102340
nativerepl2:31104044
refactort:31108082
pythonrstrctxt:31112756
flighttreat:31119336
wkspc-onlycs-c:31111717
nativeloc1:31118318
wkspc-ranged-c:31118571

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Aug 19, 2024
@corneliusroemer
Copy link

corneliusroemer commented Aug 19, 2024

Likely duplicate of #23922 and #23963

Can you check if adding the following line to your user settings fixes it:

"python.locator": "js",

@toby-coleman
Copy link

Same issue here - also using conda to provide my Python environment. Setting python.locator doesn't fix the problem.

@DonJayamanne
Copy link

@Joseph-Garvey @toby-coleman Please can you try installing the pre-release version of the Python extension
You might have to re-start VS Code after installing the extension.
This should be fixed in there.

Please let me know how this goes.

Duplicate of #23968
Please reply in the above issue.

@DonJayamanne DonJayamanne added bug Issue identified by VS Code Team member as probable bug regression Bug didn't exist in a previous release area-native-locator Issues with Rust based python locator *duplicate Issue identified as a duplicate of another issue(s) and removed triage-needed Needs assignment to the proper sub-team labels Aug 19, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-native-locator Issues with Rust based python locator bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) regression Bug didn't exist in a previous release
Projects
None yet
Development

No branches or pull requests

6 participants