-
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
Everything hangs when pytest is enabled because of broken test discovery #24501
Comments
Hi! What is your goal here with the |
Hi, @eleanorjboyd.
{
"python.testing.pytestArgs": ["--help"],
"python.testing.pytestEnabled": true,
} Method 3: Output for
|
hm yes I tried the |
@eleanorjboyd "hangs" not like UI freeze, but some extensions stop working until reload (can't use git, can't use codeium, discovery won't work anymore, etc). I hope this helps: |
wondering if it might be related to this: #24611. The fix is out on insiders tomorrow so you could try and it and test there to see if it is fixed |
yes, this immediately fixed the issue for me, thank you! |
@eleanorjboyd yeah, fixed now, thanks |
Type: Bug
Behaviour
When using
"python.testing.pytestEnabled": true,
in settings.json everything hangs after several file saves.Python log stops at
It is happening only if there are errors during discovery (no pytest at all, or no pytest output)
Git extension stops working (inifinite loading), codeium stops working, I cannot rename or move files, cannot restart test discovery, etc.
All started from v2024.21.2024111202 (pre-release), v2024.20.0 don't have this issue.
Steps to reproduce:
Method 1 - without pytest:
Setup:
settings.json:
a.py is empty file
Method 2 - with pytest and broken pytest plugin:
Setup:
settings.json:
a.py:
conftest.py:
Running discovery for pytest using the new test adapter.
message;[error] Test discovery already in progress, not starting a new one.
.Diagnostic data
Method 1: Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Method 2: Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Extension version: v2024.21.2024112901 (pre-release)
VS Code version: Code 1.95.3 (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Remote OS version: Linux x64 5.15.167.4-microsoft-standard-WSL2
python.languageServer
setting: DefaultUser Settings
Installed Extensions
A/B Experiments
The text was updated successfully, but these errors were encountered: