-
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
Django test discovery now indefinitely runs #24668
Comments
I had the same problem for my Python project (not related to Django) and went back to the previous version |
Had the same issue, discovery was fine, added a new test function, refreshed tests and discovery would never complete. Re-installed VSCode and all extensions with no joy. Rolled back to previous version v2024.22.0 and test discovery fully working |
Something has definitely borked up the testing discovery in the latest update, I'm using just |
Chiming in with the above, same problem and rollback solved the problem. I did not notice if I did anything previous to refreshing, but once I did nothing made the refresh complete. In the output view I could see the results be printed. |
It happened to me as well, running tests would fail, and new test discovery is running indefinitely. rolled back to |
Thank you guys for this discussion! Rolling back the python extension version to v2024.22.0 also fixed my indefinite test discovery for my python project. My python project was also unrelated to Django. |
Exact same scenario for me. Problematic version: May be helpful for troubleshooting, with the |
Was having the same issue with a non-django project; just regular Python data science stack. Reverting the Python plugin to Running tests using CLI had no issues. Total of 327 tests, with many parameterized. Command-line |
Guys I guess it's the same thing as #24656 |
Same here!! Please fix this |
Thanks @dvirbech, closing this as a duplicate of that issue. Any future travellers should go add reactions / support to it. |
Type: Bug
Behaviour
When I open the testing side panel it runs discovery forever. There have been no changes to my config or my python environment since this was last seen working.
I have
MANAGE_PY_PATH
andDJANGO_SETTINGS_MODULE
set in my .env file and my.vscode/settings.json
is like so:Steps to reproduce:
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.1
VS Code version: Code 1.96.2 (Universal) (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
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: