-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Test Explorer and GitHub Explorer Stuck in Discovery Mode #236359
Comments
Do the Test Explorer and GitHub Explorer work locally and in WSL? |
I'm experiencing the same issue. VS Code is stuck discovering tests - never completes, with an error or otherwise. Running pytest directly through the integrated terminal works fine. All tests collected and executed as expected. VS Code version: 1.96.0 EDIT: I'm not working in a dev container. |
@chrmarti I am experiencing the same issue than @graysddoman and I can confirm that the problem seems to happen in devcontainer, but not in WSL. Also running VSCode 1.96. |
They appear to work locally and in WSL. The issue appears when I try to work with a Dev Container. The Dev Container worked perfectly fine for months, however this has become unstable since installing the update. I'm using WSL with Ubuntu 24.04. Others in the team are experiencing the same issue as well. |
This is the output from python console: 2024-12-18 09:49:51.718 [info] Discover tests for workspace name: all - uri: /workspaces/project-name
2024-12-18 09:49:51.719 [info] Running discovery for pytest using the new test adapter.
2024-12-18 09:49:51.719 [info] Discover tests for workspace name: project1 - uri: /workspaces/project-name/src/project1
2024-12-18 09:49:51.719 [info] Discover tests for workspace name: project1_api - uri: /workspaces/project-name/src/project1_api
2024-12-18 09:49:51.719 [info] Running discovery for pytest using the new test adapter.
2024-12-18 09:49:51.719 [info] Discover tests for workspace name: project2 - uri: /workspaces/project-name/src/project2
2024-12-18 09:49:51.719 [info] Running discovery for pytest using the new test adapter.
2024-12-18 09:49:51.719 [info] Discover tests for workspace name: project3 - uri: /workspaces/project-name/src/project3
2024-12-18 09:49:51.719 [info] Running discovery for pytest using the new test adapter.
2024-12-18 09:49:51.719 [info] Discover tests for workspace name: project4 - uri: /workspaces/project-name/src/project4
2024-12-18 09:49:51.719 [info] Running discovery for pytest using the new test adapter.
2024-12-18 09:49:51.719 [info] Discover tests for workspace name: project5 - uri: /workspaces/project-name/src/project5
2024-12-18 09:49:51.719 [info] Running discovery for pytest using the new test adapter.
2024-12-18 09:53:28.441 [info] Discover tests for workspace name: all - uri: /workspaces/project-name
2024-12-18 09:53:28.441 [info] Running discovery for pytest using the new test adapter.
2024-12-18 09:53:28.441 [info] Discover tests for workspace name: project1 - uri: /workspaces/project-name/src/project1
2024-12-18 09:53:28.441 [info] Discover tests for workspace name: project1_api - uri: /workspaces/project-name/src/project1_api
2024-12-18 09:53:28.441 [info] Running discovery for pytest using the new test adapter.
2024-12-18 09:53:28.441 [info] Discover tests for workspace name: project2 - uri: /workspaces/project-name/src/project2
2024-12-18 09:53:28.441 [info] Running discovery for pytest using the new test adapter.
2024-12-18 09:53:28.441 [info] Discover tests for workspace name: project3 - uri: /workspaces/project-name/src/project3
2024-12-18 09:53:28.441 [info] Running discovery for pytest using the new test adapter.
2024-12-18 09:53:28.441 [info] Discover tests for workspace name: project4 - uri: /workspaces/project-name/src/project4
2024-12-18 09:53:28.441 [info] Running discovery for pytest using the new test adapter.
2024-12-18 09:53:28.441 [info] Discover tests for workspace name: project5 - uri: /workspaces/project-name/src/project5
2024-12-18 09:53:28.441 [info] Running discovery for pytest using the new test adapter.
2024-12-18 09:53:28.448 [error] Test discovery already in progress, not starting a new one.
2024-12-18 09:53:28.448 [error] Test discovery already in progress, not starting a new one.
2024-12-18 09:53:28.448 [error] Test discovery already in progress, not starting a new one.
2024-12-18 09:53:28.448 [error] Test discovery already in progress, not starting a new one.
2024-12-18 09:53:28.448 [error] Test discovery already in progress, not starting a new one.
2024-12-18 09:53:28.448 [error] Test discovery already in progress, not starting a new one.
2024-12-18 09:53:28.448 [error] Test discovery already in progress, not starting a new one. and it stays here forever |
I am experiencing the same symptoms and same Pytest discovery log file as above. This coincided with an update to macOS Sequoia the night before. I have tried clearing ~/Library/Application Support/Code and ~/.vscode, and all caches in the project workspace and restarting my computer. Also, there are other extensions that don't seem to work (never return results to UI) such as Github Copilot chat, running the Python Debugger, the Source Control commit graph, etc. |
Actually seems to be related to the vscode-python extension, check this issue: microsoft/vscode-python#24613 - switching to the pre-release fix the hanging issue in the Test Explorer for me. |
Could others seeing this also try with the latest pre-release of the Python extension and let us know if that fixes it? Thanks! /cc @eleanorjboyd |
Switching to the pre-release version also stops the hanging issue for me. Thank you! /cc @eleanorjboyd |
Great, thanks! Closing as duplicate of microsoft/vscode-python#24613. If the Python extension is installed automatically with the Dev Container you can add the following to the devcontainer.json to automatically get the pre-release version next time you rebuild: "customizations": {
"vscode": {
"extensions": [
"ms-python.python@prerelease"
]
}
} |
Hi! For further info see microsoft/vscode-python#24656 |
Type: Bug
Since installing the latest update (1.96), both the Test Explorer and GitHub Explorer are stuck in discovery mode and do not complete. Also, not sure if it's related, but the Dev Container I've been running for months has completely died.
VS Code version: Code 1.96.0 (138f619, 2024-12-11T02:29:09.626Z)
OS version: Windows_NT x64 10.0.22635
Modes:
Remote OS version: Linux x64 5.15.167.4-microsoft-standard-WSL2
System Info
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
Extensions (38)
A/B Experiments
The text was updated successfully, but these errors were encountered: