-
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
Test collection fails with unknown hook pytest_xdist_auto_run_workers #23774
Comments
Hi! Saw you closed this- did you upgrade your version and that fixed it? |
Nope, I just mentioned this issue on a PR that adds the |
This broke for me as well in v2024.10.0, I worked around the issue by reverting back to an older version of vscode python extension. |
Any updates here? I was hoping this will make the cut for the next release :) |
Hi @lukaspiatkowski, we have just made more changes in this area to help with compatability. Could you give this a try tomorrow on the newest version of the python extension (the pre-release one) that comes out tomorrow and let me know if it works for you? |
Hi @eleanorjboyd, I have tried the |
SSR
…---Original---
From: "Lukasz ***@***.***>
Date: Tue, Jul 23, 2024 17:13 PM
To: ***@***.***>;
Cc: ***@***.***>;
Subject: Re: [microsoft/vscode-python] Test collection fails with unknown hook pytest_xdist_auto_run_workers (Issue #23774)
Hi @eleanorjboyd, I have tried the v2024.11.2024072301 Python extension and still have errors. Here are example logs from a single test run. Test discovery itself also fails (traceback here), although it looks like you have implemented some caching mechanism as I can still see tests collected successfully (presumably from past attempts) and failed discovery at the same time (thanks, this functionality is very useful!)
Screenshot.2024-07-23.at.11.10.28.png (view on web)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
---Original---
From: "Lukasz ***@***.***>
Date: Tue, Jul 23, 2024 17:13 PM
To: ***@***.***>;
Cc: ***@***.***>;
Subject: Re: [microsoft/vscode-python] Test collection fails with unknown hook pytest_xdist_auto_run_workers (Issue #23774)
Hi @eleanorjboyd, I have tried the v2024.11.2024072301 Python extension and still have errors. Here are example logs from a single test run. Test discovery itself also fails (traceback here), although it looks like you have implemented some caching mechanism as I can still see tests collected successfully (presumably from past attempts) and failed discovery at the same time (thanks, this functionality is very useful!)
Screenshot.2024-07-23.at.11.10.28.png (view on web)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Hi @tensoren-likai! I am not see any example logs, could you try sending them again? Thanks |
@eleanorjboyd seems like @tensoren-likai send my message repeated by mistake, see my original message above for link to logs |
Any progress here @eleanorjboyd? |
Hi, I am facing the same issue with the latest Python extension. |
Hi! Sorry for the delay- taking a look at this again. Can you try upgrading your version of |
I am unable to do the upgrade, there is some severe perf regression in the
new versions, which might be solvable, but I wasn't able to fix it yet and
I am stuck with version 1. I was hoping this would be an easy fix on vscode
side to be backwards compatible with older xdist versions.
wt., 7 sty 2025, 20:37 użytkownik Eleanor Boyd ***@***.***>
napisał:
… Hi! Sorry for the delay- taking a look at this again. Can you try
upgrading your version of pytest-xdist? I see the current version is 3.6.1
and the issue was first reported with a major version of 1. Thanks
—
Reply to this email directly, view it on GitHub
<#23774 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABCCVSQF3CSSZ6QT3FWTSA32JQUHJAVCNFSM6AAAAABKS52JESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZWGA4DGMBYGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Type: Bug
I am using pytest-xdist==1.34.0 and I have "python.testing.pytestEnabled" on. Opening Testing tab triggers testing collection which fails. When it first happened I still had the capability to run tests, so I've tried it and the tests also crashed with the same error:
I've managed to work around this by passing "-p no:xdist" to the pytestArgs, but that is not ideal.
Extension version: 2024.11.2024070901
VS Code version: Code 1.91.0 (ea1445cc7016315d0f5728f8e8b12a45dc0a7286, 2024-07-01T18:53:23.353Z)
OS version: Darwin arm64 23.4.0
Modes:
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
A/B Experiments
The text was updated successfully, but these errors were encountered: