-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
multi-root workspace python test discovery hangs with more than 3 projects #24594
Comments
same problem here. this is clearly a regression of the last version v2024.22.0. 2024.20.0 works fine. I spent half day to find the root cause... |
I can also confirm that I have exactly the same behaviour. We have Workspace with 27 folders:
VSCode version: Version: 1.96.0 Current workaround for me was to revert to the previous version "2024.20.0" and disable Auto Update for this extension for now. |
I can also confirm I have the exact same problem. VSCode 1.96.0 I have cleaned everything but installed only python extension:
|
Thank you! Started having this problem today also. Reverting to 2024.20.0 fixed it for me. |
I see the same issue. Possibly related: my workspace includes projects for which pytest discovery fails due to issues in the projects. Until vscode-python version 2024.20.0, these errors are reported, and other projects are discovered correctly. |
@eleanorjboyd - I don't know about others, but I'm still experiencing a situation where the I'm on My work-around is to I noticed this in the logs (although, it seems unlikely to be the root cause here):
So I removed
After restarting VSCode to see how it works without I'll note that, in the past, test discovery and test run has had a harder time recovering from import-time Exceptions/failures (e.g. We can spin this off into a separate issue, if that would be helpful! |
@tboddyspargo There has not been a release since the fix. I understand it is planned for January 2025. |
I understand that PR has been made available in the pre-release versions (including |
Type: Bug
Behaviour
I have a multi-root workspace with a few Python folders in it. When I add up to 3 of these folders, test discovery works and the test explorer shows the test tree view. When I add another folder, discovery hangs with no errors logged. The project folder itself isn't the issue. Mixing and matching up to 3 work fine.
Steps to reproduce:
Interestingly, in the "Python output window" section (see output below),
All environment variables set for pytest discovery
is only emitted 3 times so it presumably hung up trying to "process" the 4th project.There would seem to be some sort of resource issue causing this. The logs are too sparse to indicate what however.
Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Extension version: 2024.22.0
VS Code version: Code 1.96.0 (138f619c86f1199955d53b4166bef66ef252935c, 2024-12-11T02:29:09.626Z)
OS version: Darwin arm64 24.2.0
Modes:
python.languageServer
setting: DefaultUser Settings
Installed Extensions
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
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: