# VSCode status bar BUILD icon press fails - latest WLED and VSCode+Exts

**URL:** <https://wled.discourse.group/t/vscode-status-bar-build-icon-press-fails-latest-wled-and-vscode-exts/9966>\
**Category:** Issues\
**Created:** [November 20, 2023, 12:31pm UTC](https://wled.discourse.group/t/vscode-status-bar-build-icon-press-fails-latest-wled-and-vscode-exts/9966 "2023-11-20T12:31:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Imerio](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/imerio/32/2609_2.png) [@Imerio](https://wled.discourse.group/u/Imerio)\
**Post date:** [November 20, 2023, 12:31pm UTC](https://wled.discourse.group/t/vscode-status-bar-build-icon-press-fails-latest-wled-and-vscode-exts/9966/1 "2023-11-20T12:31:58Z")

</div>

WLED is just the best - big big thanks Aircookie.

Got a most minor issue with a clean install of VSCode and fresh pull of WLED (0\_15); the BUILD icon in the status bar (the tick) would fail to trigger a build. The UPLOAD icon works and does a build if required. Unknown if relevant, was building Elekstube IPS usermod version.

![image](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/9/9b6ec47ed09d527453333124acd956b54a2e4deb.png)

I removed the `WLED/.vscode/tasks.json` file that gets delivered in WLED, restarted VSCode and now the BUILD icon click works correctly. Nice!

Anyway, hope this helps someone.

---

<div class="post-metadata">

**Author:** ![mxklb](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/mxklb/32/4032_2.png) [@mxklb](https://wled.discourse.group/u/mxklb)\
**Post date:** [November 21, 2023, 3:20pm UTC](https://wled.discourse.group/t/vscode-status-bar-build-icon-press-fails-latest-wled-and-vscode-exts/9966/2 "2023-11-21T15:20:54Z")

</div>

Check Workaround

> [@Compile button in VSCode does not compile but manual compile works](https://wled.discourse.group/t/compile-button-in-vscode-does-not-compile-but-manual-compile-works/9787/6):
>
> This is the answer. For me I experience the same behavior since today. In the past this was different. Must have something to do with vscode updates or WLED build config changes. Nevertheless, pressing delete brings up all build options as in the past and every thing compiles fine. I would call this a bug in build system. At least the official description in WLED docs, doesn’t work for me as documented. @ALDIY thank you for this easy workaround

---

<div class="post-metadata">

**Author:** ![Imerio](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/imerio/32/2609_2.png) [@Imerio](https://wled.discourse.group/u/Imerio)\
**Post date:** [November 22, 2023, 9:36am UTC](https://wled.discourse.group/t/vscode-status-bar-build-icon-press-fails-latest-wled-and-vscode-exts/9966/3 "2023-11-22T09:36:02Z")

</div>

Thx, had tried DELETE (tried all the shortcut actions trying to discover the problem), didn’t resolve the issue. Remove this snippet from the `.WLED/.vscode/tasks.json` resolves the problem.

```auto
    {
      "type": "PlatformIO",
      "label": "Build: binary only",
      "task": "Build",
      "group": {
        "kind": "build",
        "isDefault": true
      },
      "problemMatcher": [
        "$platformio"
      ],
      "presentation": {
        "panel": "shared"
      }
    },

```

---

<div class="post-metadata">

**Author:** ![mxklb](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/mxklb/32/4032_2.png) [@mxklb](https://wled.discourse.group/u/mxklb)\
**Post date:** [November 22, 2023, 11:23am UTC](https://wled.discourse.group/t/vscode-status-bar-build-icon-press-fails-latest-wled-and-vscode-exts/9966/4 "2023-11-22T11:23:41Z")

</div>

Maybe someone officially (f.e. @blazoncek) will take your solution into account and fix this in general. **Actually building WLED is not possible as described in the docs.** Mainly I wanted to link your solution to the ‘delete’ workaround, to avoid more threads popping up with the same ‘can’t build WLED’ issue …

---

<div class="post-metadata">

**Author:** ![blazoncek](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/blazoncek/32/1886_2.png) [@blazoncek](https://wled.discourse.group/u/blazoncek)\
**Post date:** [November 22, 2023, 11:45am UTC](https://wled.discourse.group/t/vscode-status-bar-build-icon-press-fails-latest-wled-and-vscode-exts/9966/5 "2023-11-22T11:45:53Z")

</div>

I am not willing to tackle such minor problem as deleting pre-filled “Build” dialog (which was caused by VSC and/or PIO update) resolves build issue.  
I know it is PITA but I am no MS VSC + PIO + CI expert so my resolution is just to remove pre-filled entry.

In any case, you can select desired build environment (second next to upload button) and build will work for your chosen environment.

You are welcome to update documentation if you think it needs clarification.
