-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Pytest restart debugger works only with code-workspace files #21365
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
Comments
Hi! Thank you for the detailed steps and the example repo! I tried your steps and was unable to see the issue. When I click restart, it looks to run testing once more. Here is a recording of my steps, does this look like what your does? Any other settings which might be influencing the behavior? restart-debugging-triage.mov |
Ok, I think I see the difference between my setup and yours. |
sample_folder: pytest.mp4 |
Thank you for the video- able to repro and will investigate now! |
Hi! I can no longer repro this so I am closing it. We have just fixed up how some of the test flow works on the rewrite and this could have resolved this too. Let me know if you are still seeing this issue and I can take another look. (the more recent changes to the test flow are on insiders right now and will be out on stable later this week). |
Type: Bug
Behaviour
Expected vs. Actual
Debugger restart while running pytest should run pytest again. It currently works only for
code-workspace
files.Actually, the second time, the debugger runs current python file.
Steps to reproduce:
sample.zip
sample_project
folderpython3 -m venv .venv
source .venv/bin/activate
pip install pytest
test_sample.py
do_something
Ko => debugger runs current file
Again, with a
code-workspace
file:sample_workspace/sample.code-workspace
2-8. Same steps
Ok => debugger runs again the selected test
Diagnostic data
python.languageServer
setting: DefaultOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
Extension version: 2023.8.0
VS Code version: Code 1.78.2 (b3e4e68a0bc097f0ae7907b217c1119af9e03435, 2023-05-10T14:39:26.248Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: No
Remote OS version: Linux x64 5.15.90.1-microsoft-standard-WSL2
Remote OS version: Linux x64 5.15.90.1-microsoft-standard-WSL2
System Info
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
The text was updated successfully, but these errors were encountered: