-
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
Python test shows spinning icon #7898
Comments
Quick update: the same bug is present in the insider (daily) version of the Python VSCode extension, used within the insider version of VSCode. |
Not sure anymore what is happening. Downgrading to the previous version of the Python extension does not solve the issue (which, however, started to appear after the latest update). Downgrading VSCode to the August 2019 version does solve the issue. |
@astrozot, thanks for letting us know about this. At first glance it looks like an incompatibility with changes in the recent release of VS Code. We'll definitely look into that. In the meantime, when you downgraded VS Code to the August release, did you still see the problem with the latest release of the Python extension? What about with the insiders build? |
FTR, the release notes for VS Code 1.39 mention a number of changes related to tree views. I'm guessing that's where we should focus attention. |
@ericsnowcurrently Thank you for your quick reaction! The August release of VS Code does not show any issue: I am currently using it together with the latest release of the Python extension and everything seems OK. |
I'm having the same issue as well. For me, it only ever happens when choosing to run a single test, either via the test panel on the left or with the inline buttons in the editor. If I choose to run a batch of tests, the issue doesn't occur. |
I'm having this as well. The test gets stuck on loading, and doesn't show the debug and run buttons that are typically present to the site of the test. Furthermore, as there's no cancel button for individual tests, there's no way to stop it other than restarting VSCode. I noticed that this only happens when I try to debug / run an individual test, and that test fails. It doesn't happen when all the tests are run together. |
Related issue on microsoft/vscode#82290 |
This looks like a regression in VSCode Tree View. Filed an issue on microsoft/vscode#82629 |
confirmed with 1.39.2 |
Just adding that I also see this happening in my Python environment on VSCode. Run a single test and it hangs indefinitely. Python Extension Version: |
Chiming that not only does this happen, but then I can't run any more tests from the tree view until I reload vscode. Python Extension Version: |
Ditto. Happens only when I run or debug a single test. If I stick to "Run All Tests" it works fine. Python Extension Version: |
I dug a bit deeper. Tested a class with three tests:
Guys, thanks in advance for working on a fix :) |
This is an upstream issue and has to be addressed in VS Code. currently no action on the extension side. |
Hey @karthiknadig, what's the ETA on the fix on the part of VS Code? I'm inclined to want this to be open, since it is a bug. It should stay open till VS Code fixes it. Currently VSCode is unsuable for debugging pytests, and I've switch to PyCharm for debugging in the interim. |
Hey @YoDaMa, I understand your point of view. The thing is that we have over 1K open issues, so it gets really hard to keep track of what needs to be done and prioritized. That's why we've been closing issues in this repo that are being or will be addressed upstream, just to try to get a manageable backlog of open issues that we can fix in the Python extension. However, I'd like to highlight that this issue is not breaking debugging tests, I believe you're experiencing a different issue. |
@luabud or @karthiknadig can you point us to the relevant issue in the vscode repo? |
@natemwilson This one microsoft/vscode#82629 |
The upstream issue seems part of the 2019 October sprint 3. |
FYI for when VSCode is installed as a package, especially for linux users. Setting update to 'None' is not enough. |
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version #3977): NoExpected behaviour
When running a test, I expect to see a spinning icon disappear after the test is completed, to show a green or red icon depending on the result of the text.
Actual behaviour
The spinning icon keeps spinning.
Steps to reproduce:
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)The text was updated successfully, but these errors were encountered: