Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Can't compile and run C code by pressing the play button

已关闭
#14,793 2 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@sean-mcmanus 已经在做这个了。

开始于 2026年9月22日。

评估

这个 Issue 还没有评估数据。

描述

more info needed

Type: Bug

Description

Can't run C file using the play button. The menu only shows (gdb) launch. I'm sure that GCC is install and in PATH. Same in WSL.

Steps to reproduce

  1. Check if GCC is installed and is in PATH. If not, install it and add it to PATH.
  2. Open a new folder.
  3. create a .c file.
  4. Enter some code
  5. Check if the C/C++ extension by Microsoft is installed. If not, install it and reload VS Code.
  6. Click on the arrow beside the play button on the top right of the window.
  7. Select "Run C/C++ file"
  8. See that only (gdb) launch (and (Windows) launch on Windows) shows up. Notice that there is no option that looks like gcc build active file.

Other Information

Extension version: 1.34.4
VS Code version: Code 1.138.0 (7debcd0e2acdea1c52de81bf9ee1620444407dda, 2026-09-15T07:24:32Z)
OS version: Windows_NT x64 10.0.26200
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) Ultra 5 115U (10 x 2688)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x8086, DEVICE=0x7d45 [Intel(R) Graphics], DRIVER_VENDOR=Intel, DRIVER_VERSION=31.0.101.5522 ACTIVE
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8972
Machine model name:
Machine model version:
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
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.68GB (20.32GB free)
Process Argv --folder-uri=vscode-remote://wsl+Ubuntu/home/user/C_programs --remote=wsl+Ubuntu --crash-reporter-id 0c9af523-0443-43ea-adac-b28c81065aaf
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
envsactivate1:31551504
cloudbuttont:31379625
3efgi100_wstrepl:31403338
55ia6109:31457054
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31466945
8hhj4413:31478653
cp_cls_t_1081:31454832
conptydll_true:31498968
e9c30283:31461165
46204921:31447328
ei9d7968:31496641
chat:31457767
ddid_c:31478207
hmra_i5g22:31518061
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
db5d2638:31499441
jb_cp_cls_t_632:31543129
56dj4588:31512888
32d76977:31512328
ha629193:31508444
jh5f2457_c:31540921
jbcp_cls_pctr_t:31531130
cp_intellij_t_nes:31548657
ahp-both-windows:31556933
ihg5j128:31534457
7g2b5551:31542111
enable_editor_pane_layout:31569726
allow-none:31555437
36h42362:31564511
c7c27ce7:31554789
1h923230:31564177
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
0d8dfbc3:31570291
switchtoauto:31559321
0c1h4866:31566224
session-archive:31558132
5b8j3302:31564601
autotiers:31584978
mangle-name-treatment:31572634
allow-signed-out:31584137
intellij_nes_preview_t:31580086
multiv2:31574985
2bfb8b39:31585911
outline:31581109
links-control:31587703
aw-autom-on:31583758
revealsession_control_7ed7e840:31582193
usage_tips_endabled_0911:31587631
7g328426_fixed:31584544
codex-agent-host-stable-control:31585316
0485115c-2712-4002-b6e9-b5d4e30fb963:31586114
sessioninlinediffenabled_disabled:31587634

主要语言
TypeScript
星标
6.2k
派生
1.7k
平均合并
1 天 18 小时
30 天内合并 PR
38

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/vscode-cpptools 的其他 Issue

查看 microsoft/vscode-cpptools 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。