Skip to content

Test Extension won't show up after ctrl+p configure tests with pytest #24721

@rbavery

Description

@rbavery

Type: Bug

Behaviour

In either a remote dev container ( a local docker image) or my host vscode, I can't get the test extension that allows me to debug pytests to show in the extension lists anymore after an upgrade to the latest vscode version. 1.96.3 and 1.96.2 have this issue.

Steps to reproduce:

  1. Install the new vscode.
  2. have a tests/ folder with pytests
  3. pip install pytest
  4. cntrl+p and then configure tests, select pytest
  5. nothing happens in the UI at all, there's no error output suggesting an issue with test discovery and no text extension icon shows on the left. there are no logs in the output panel.

Example

Image

Extension version: 2024.23.2025011301
VS Code version: Code 1.96.3 (91fbdddc47bc9c09064bf7acf133d22631cbf083, 2025-01-09T18:14:09.060Z)
OS version: Linux x64 6.8.0-51-generic
Modes:
Remote OS version: Linux x64 6.8.0-51-generic

  • Python version (& distribution if applicable, e.g. Anaconda): 3.10.16
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
  • Value of the python.languageServer setting: Default
User Settings


languageServer: "Pylance"

testing
• pytestArgs: "<placeholder>"
• pytestEnabled: true

terminal
• activateEnvironment: false

Installed Extensions
Extension Name Extension Id Version
autodocstring njp 0.6.1
black-formatter ms- 2024.4.0
copilot Git 1.257.0
copilot-chat Git 0.23.2
debugpy ms- 2024.15.2024121701
isort ms- 2023.10.1
js-debug ms- 1.96.0
jupyter ms- 2024.11.0
jupyter-renderers ms- 1.0.21
pylint ms- 2024.0.0
python ms- 2024.23.2025011301
vscode-docker ms- 1.29.3
vscode-js-profile-table ms- 1.0.10
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
vscode-pull-request-github Git 0.102.0
vscode-pylance ms- 2024.12.1
System Info
Item Value
CPUs Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (12 x 4300)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
Load (avg) 1, 2, 1
Memory (System) 31.27GB (14.68GB free)
Process Argv . --crash-reporter-id 328987c8-aa80-4dce-91b9-d1e5255bab2e
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE x11
Item Value
Remote Container gpu-wherobots-inference-gpu (gpu-wherobots-inference-gpu-1)
OS Linux x64 6.8.0-51-generic
CPUs Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (12 x 4300)
Memory (System) 31.27GB (14.68GB free)
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
vscaat:30438848
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupytercf:31046870
newcmakeconfigv2:31071590
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
dwoutputs:31217127

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions