Had to create a new thread. Too many notes on the other update complaint.
Now nothing compiles again. When I hit the button, the field at the top opens a box, and compile ultimately fails.

I reinstalled PIO the extension three times, and the button bar came back. It no longer says No Kits. But the last file was built and run successfully a week ago.
Working on WeMos D1 Mini/8266 now.
And then a bunch of notifications came, and I got another update, and now itâs compiling again.
So should I expect this to be like the iPhone, where an update means a week or two of malfunctions?
I canât imagine getting it right when youâve got so many inputs. It amazes me when anything works once in a row.
And Iâm going to be more annoyed than you if I come back in an hour and say itâs happening again. But thatâs not going to happen.
When you hit which exactly button? The task that comes up here is not supplied by PlatformIO. This looks like some extension (or VSCode builtin thing, idk), that directly invokes the compiler on just that C/C++ file. Whatever that invocation does itâs completely wrong (it doesnât tell the compiler about framework paths, so it canât even find Arduino.h) and should not be used. The correct build task will call into pio run
and let PIO handle the build process â individual compiler invocations are not done directly in VSCode but only through the PIO executableâŚ
Iâd recommd to:
- remove the
.vscode
folder of the project
- use the PlatformIO project task âMiscelleneous â Rebuild IntelliSense indexâ to regenerate these files
- double check for any conflicting C/C++ extension that might have injected this task there.
1 Like
Removed VSCode folder, opened VSCode, opened this file, hit the âbuildâ button:
âcommand âplatformio-ide.buildâ not foundâ
Rebuilt Intellisense index, and the build button did a build.
By the way, I downloaded PIO to my Linux machine and built an old Arduino sketch- back and forth LEDs, light Night Rider.
But it has only 4GB RAM, and itâs way too slow. (1TB HD)
My Win10 PC only has 4GB Ram too, but itâs really quick. (2TB)
Ordered memory this morning. I wonât try to use the Linux machine until it gets the new RAM.
Alright problem solved then