vscode-go icon indicating copy to clipboard operation
vscode-go copied to clipboard

Golang debug test at cursor via hotkey ctrl-k ctrl-c not working

Open nixomose opened this issue 10 months ago • 16 comments

Type: Bug

In go I have a test file with lots of tests, usually I hit ctrl-k ctrl-c to debug the test at the cursor location. Used to work great, I upgraded vscode recently and now it says

The Go test explorer does not support debugging multiple tests

If I run it from the right-click menu it works most of the time, sometimes not, and if I click the "debug test" at the top of the function it works all the time, but the hotkey always fails. Hotkey as you might guess is most useful.

Extension version: 0.44.0 VS Code version: Code 1.97.0 (33fc5a94a3f99ebe7087e8fe79fbe1d37a251016, 2025-02-04T22:41:26.688Z) OS version: Linux x64 6.8.0-52-generic Modes:

System Info
Item Value
CPUs AMD Ryzen 7 5700G with Radeon Graphics (16 x 4478)
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) 2, 4, 4
Memory (System) 121.74GB (82.82GB free)
Process Argv --unity-launch --crash-reporter-id d3806a5c-5455-4feb-9200-3168db5f4747
Screen Reader no
VM 0%
DESKTOP_SESSION xubuntu
XDG_CURRENT_DESKTOP XFCE
XDG_SESSION_DESKTOP xubuntu
XDG_SESSION_TYPE x11
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt551cf:31179979
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupytercf:31046870
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31192215
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
hdaa2157:31222309
copilot_t_ci:31222730
jda6j935:31233686

nixomose avatar Feb 08 '25 00:02 nixomose