Build command sometimes has to wait 5-10 seconds on "Fetching Build Tasks..."

オープン
#10,474 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp, typescript

調査の方向性

まず、C/C++ファイルを含むワークスペースで Ctrl+B を使って遅延を再現し、次に CppTools 拡張機能の C/C++ task provider と、検出されたタスクの動作を調べます。Task: Auto Detect を有効にした場合と無効にした場合で、タスクの取得を比較します。検出されたタスクが引き続き機能しながら、報告された 5–10 秒の待ち時間なしでビルドタスクのメニューが表示されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug help wanted not reproing tasks/build/debug
Environment
  • OS and Version: Windows 11 Pro 10.0.22621
  • VS Code Version: 1.75.0
  • C/C++ Extension Version: 1.14.1
  • If using SSH remote, specify OS of remote machine: N/A
Bug Summary and Steps to Reproduce

Bug Summary:

Issuing the build command (Ctrl+B) may sometimes cause VSCode to spend 5-10 seconds "Fetching Build Tasks..." (in status bar) before showing the build tasks menu. I've narrowed down the culprit to the CppTools extension and its C/C++ task provider that suggests a task depending on the file type, aka "detected tasks" in the build menu. I was able to fix this issue by changing the "Task: Auto Detect" setting to "off".

Steps to reproduce:

  1. Open a workspace/folder with a C/C++ file.
  2. Press Ctrl+B and wait for the menu to show.
  3. If menu shows immediately, press escape.
  4. Repeat steps 2-3 until you see "Fetching Build Tasks..." in the status bar.

Expected behavior:
There shouldn't be any wait for the build tasks menu to show, especially after its already been shown once before. It should be instantaneous.

Configuration and Logs

No response

Other Extensions

No response

Additional context

No response

主要言語
TypeScript
スター
6.2k
フォーク
1.7k
平均マージ
14時間 46分
マージ済み PR(30日)
61

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/vscode-cpptools のほかの issue

microsoft/vscode-cpptools の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。