Closed jerabaul29 closed 2 years ago
Hi @jerabaul29, I agree it is odd. I am not 100% sure, but I think this used to be the default behavior in platformio because I had to figure out how to make it happen. But when I test on other platforms now it no longer auto uploads.
I will remove the auto-upload.
Sounds good :) .
This looks to be working now I think (did a fresh install a few minutes ago and I can do some compiles without uploads :) ). Feel free to close :) .
Clicking on the "Platformio: Build" button in the VSC bottom bar compiles the code fine as expected, but it also tries to upload (not as expected). As a consequence, if no board is available, there may be situations like i) compile works fine, but ii) upload fails and the command returns an error status code. See:
This is no big deal, I can see that the compilation went fine, but a bit surprising the first time - it goes against the convention that "build" only builds does not try to upload, and indicates fail when it should actually indicate success - since compilation was successful.