golang / vscode-go

Go extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=golang.Go
Other
3.91k stars 758 forks source link

debug test log shows #3609

Open yupor5 opened 1 week ago

yupor5 commented 1 week ago

Type: Bug

When debugging test scheduling, the log shows that the query is not clear enough. The log shows merged queries, and the - v operation cannot be found. Why can't debug test include - v

Extension version: 0.42.1 VS Code version: Code 1.95.3 (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|12th Gen Intel(R) Core(TM) i5-12400 (12 x 2496)| |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: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|undefined| |Memory (System)|31.78GB (12.68GB free)| |Process Argv|E:\\golang\\source8\\matapi --crash-reporter-id accb328f-e77e-41b5-beb8-ef12c42b9970| |Screen Reader|no| |VM|50%|
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 da93g388:31013173 dvdeprecation:31068756 dwnewjupytercf:31046870 nativerepl2:31139839 pythonrstrctxt:31112756 nativeloc2:31185842 cf971741:31144450 iacca1:31171482 notype1cf:31157160 5fd0e150:31155592 dwcopilot:31170013 stablechunks:31184530 ```
firelizzard18 commented 1 week ago

Are you running via a code lens or via the play button/test explorer? What do you expect to be happening? What do you mean by "test scheduling"?

If you are running via the play button/test explorer, that uses go test -json which internally is treated as -v (specifically, -test.v=test2json). go test -v -json is redundant, and is also buggy.

hyangah commented 1 week ago

@yupor5 Can you please share either screenshot or the log output & your settings to help us triage?

yupor5 commented 5 days ago

image This is an image, and the output log cannot be associated during search