Skip to content
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

Spins forever when running test fails #21939

Closed
roblourens opened this issue Sep 6, 2023 · 4 comments
Closed

Spins forever when running test fails #21939

roblourens opened this issue Sep 6, 2023 · 4 comments
Assignees
Labels
area-testing verified Verification succeeded

Comments

@roblourens
Copy link
Member

roblourens commented Sep 6, 2023

Type: Bug

Behaviour

Expected vs. Actual

I right clicked a test and clicked "Debug test". The test runner failed to start due to a misconfiguration. Then the spinner decoration on the test run entry spins forever.

Steps to reproduce:

  1. Add a launch config like this:
        {
            "name": "Python: Debug Tests",
            "type": "python",
            "request": "launch",
            "module": "pytest",
            "args": "${file}",
            "purpose": [
                "debug-test"
            ],
            "console": "integratedTerminal"
        }

this is invalid because it has 'module'.

  1. Run "debug test"
  2. Get an error message
  3. See test run spinner spin forever in the test explorer and test results view
image

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.9.5
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
  • Value of the python.languageServer setting: Default
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

User Settings


languageServer: "Pylance"

linting
• enabled: false

testing
• unittestArgs: "<placeholder>"
• unittestEnabled: true

Extension version: 2023.17.12491008
VS Code version: Code - Insiders 1.83.0-insider (df703092cd69d660608c3979b9db2e00ddb6185e, 2023-09-06T21:44:44.629Z)
OS version: Darwin x64 22.6.0
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (16 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 5, 5, 5
Memory (System) 32.00GB (0.05GB free)
Process Argv --enable-proposed-api isc-bsaviano.vscode-memfs --crash-reporter-id a2c1d522-e9f0-4e3f-b78a-9253f1c2d2d3
Screen Reader no
VM 0%
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256197
vslsvsres303:30308271
pythontb:30258533
pythonptprofiler:30281269
vsdfh931:30280409
vshan820:30294714
vscod805cf:30301675
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30404738
py29gd2263:30784851
vscaac:30438845
vsclangdf:30492506
c4g48928:30535728
dsvsc012:30540252
pynewext54:30618038
2i9eh265:30646982
showlangstatbar:30737417
24365598:30687740
pythonfmttext:30716741
fixshowwlkth:30771523
showindicator:30805243
pythongtdpath:30726887
i26e3531:30792625
welcomedialog:30812478
pythonnosmt12:30779711
pythonidxpt:30768918
pythonnoceb:30776497
copilotsettingt:30808721
dsvsc013:30777762
dsvsc014:30777825
diffeditorv2:30786206
pythonlinttypecf:30823782
pythonmhint1:30815193
dsvsc015:30821418
pythontestfixt:30826906
pythonfb280951:30830809

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Sep 6, 2023
@eleanorjboyd
Copy link
Member

should be fixed by #21876

@eleanorjboyd eleanorjboyd added ghc-osd and removed triage-needed Needs assignment to the proper sub-team labels Sep 19, 2023
@ruimin-z
Copy link

Hello @eleanorjboyd, can I work on this issue?

@eleanorjboyd
Copy link
Member

This issue needs to be verified with the new testing rewrite setting turned on:

You can check for it by looking at Experiment 'pythonTestAdapter' is active in your python logs. You can turn it on by adding this setting to your users settings.json "python.experiments.optInto": ["pythonTestAdapter"].

@eleanorjboyd eleanorjboyd added the verification-needed Verification of issue is requested label Sep 22, 2023
@eleanorjboyd eleanorjboyd added this to the September 2023 milestone Sep 22, 2023
@ruimin-z
Copy link

I verify this issue is fixed when new testing rewrite setting is both turned on and off.

@eleanorjboyd eleanorjboyd added verified Verification succeeded and removed verification-needed Verification of issue is requested labels Sep 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-testing verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants