Skip to content

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

@sborkowski

Description

@sborkowski

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp wantedCan be fixed in the public (open source) repo.not reproingWe're not able to reproduce the issue (it's unlikely to get fixed until we find one).tasks/build/debugAn issue relating to tasks.json (e.g. build issues)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions