-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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 hangs (because it is stuck at the test collection stage) after the "Python" extension is updated to v2024.22.1 #236901
Comments
Also experiencing this! For me this occurred after downloading the 1.96.1 update. |
The same issue here |
I suggest you guys to do what I did until we get a solution, downgrade Python extension and debugpy extension, if it doesn't work, clone you repo to a new folder and try running again, off course, also restart vscode |
Having the same issue! I could reproduce the behavior from test discovery in a plain unit test, by isolating the part which caused the the discovery to freeze. This unit test also freezes the same way if executed within the VSCode test executor. #test_cause_trouble.py
def test_cause_trouble():
import requests
response = requests.get("http://127.0.0.1:8080")
response.raise_for_status() If I run the test straight from my terminal I receive UpdateI just tested the code above using the VSCode Python extension version 2024.20.0 and the tests fails as expected without freezing |
downgrading fixed it. see microsoft/vscode-python#24656 to stay up to date on a fix. |
/extPython |
It looks like this is caused by the Python extension. Please file the issue to the Python extension repository. Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our issue reporting guidelines for more information. Happy Coding! |
see microsoft/vscode-python#24656 for more info- thanks! |
My "Python" extension has the Auto Update set, and today (Tue December 24, 2024) around 1:30pm (GMT+7), the auto update was kicked in to install v2024.22.1 on my Macbook (Sequoia 15.2 (24C101) ) and the pytests in my project are no longer discovered (i.e. the test discovery process is never finished)
Note that I disabled all other extensions and found that the "Python" extension is the culprit here.
This issue is resolved after revert back to version v2024.22.0 by choosing the "Install Specific Version" option in the context menu
Does this issue occur when all extensions are disabled?: Yes/No
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: