microsoft / microsoft/vscode-cpptools

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

Aperta
#10,474 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug help wanted not reproing tasks/build/debug
Lingua principale
TypeScript
Stelle
6.2k
Fork
1.7k
Merge medio
14h 46m
PR unite (30g)
61

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia riproducendo il ritardo con Ctrl+B in uno spazio di lavoro contenente un file C/C++, quindi esamina il provider di attività C/C++ dell’estensione CppTools e il relativo comportamento con le attività rilevate. Confronta il recupero delle attività con Task: Auto Detect abilitato e disabilitato. Il lavoro è completato quando il menu delle attività di build viene visualizzato senza l’attesa segnalata di 5–10 secondi, mentre le attività rilevate continuano a funzionare.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
cpp, typescript
Ambito
build-system, developer-experience, tooling
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.