I just started using Platformio and I am actually loving it. And today suddenly I started getting this problem first I got the Error message “unable to resolve configuration with compilerpath” and then random files are being generated in my project and also I am getting tons of error in my projects related serial etc
I am using arduino core with esp32
I have circled with red on random generated files in my project
I had this same issue, nothing fixed it. See this thread
I tried vscode on another machine, same thing. However, when i logged out of my account on the other machine, disabled all extensions but the platformio and c++ extensions required by pio - the issue STILL happened. This told me the issue was not my machine, but my extension settings, so I went and checked the c++ extension - it was on the pre-release version. I switched to the release version - problem solved (for now). I am absolutely positive this was the cause of the issue. I tried everything prior, reinstalling vscode, reinstalling platformio (10 times might I add), checking user permissions, disabling windows defender, etc etc. Nothing worked. Check your c++ extension and ensure that it is on the ´release´ version, not the ´pre-release´. Then, delete the contents of the ´.platformio/packages´, ´.platformio/platforms´, ´.platformio/.cache´ folders and rebuild the project.
“… Check your c++ extension and ensure that it is on the ´release´ version, not the ´pre-release´. Then, delete the contents of the ´.platformio/packages´, ´.platformio/platforms´, ´.platformio/.cache´ folders and rebuild the project.”
Yes this seems to work. You may get an error as it takes time to rebuild and you may have to do it for every project. Thanks zanzythebar
Hi @haseebzaib
That is unfortunate timing! I have been using PIO without issues (other than my own ignorance ) for about 9 months - so much better than the Arduino IDE!