I am a confused newbie to Platformio and I’m trying to figure out why I get an error stated that multiple requests to rebuild the project have been received.
I noticed that to the immediate right of the new cli terminal icon at the bottom of VSC wind is a folder icon, and when selected, it reveals two environments being present including one that is labelled as "default_envs from platformio.ini
I’m a bit confused as to how I have two environments stemming from the same project? Could this be cause of the error happens when I do a “full clean” on the project?
Thanks in Advance!
Rob
Please show the exact error message. A “stated error message” ist hard to analzye.
You can configure multiple environments that you can switch between. See “platformio.ini” (Project Configuration File) — PlatformIO latest documentation
If the default environment is selected but none is specified in platformio.ini, all environments are processed one after the other.
For this reason, this cannot be the cause of the error you are experiencing.
A “Full Clean” deletes all library dependencies and already compiled files. During the next build, library dependencies are downloaded again and all files are recompiled.
Despite getting this error, I watched the lines generated in the output window and there appears to be no issues flagged and the last line confirms a successful update of the project. That said, I’m not sure if I should ignore the error message. Generally I ignore warnings (with caution) but try and understand a resolve any generated errors. - Thanks, Rob
I am not sure exactly where the error message is coming from. The output regarding the project (reinstalling the dependencies after the full clean) looks normal.
The error seems to be triggered by something else. Possibly by another VS Code plugin. Remove all plugins except PlatformIO and C/C++ and see if the error still occurs.
I thought it might OK in regards to building the project, I do have a number of plugins installed with VSC. I think I’ll try disabling them first to see if that fixes the problem. I’m not sure if I want to get rid of them just to fix this error message.