If a build or upload fails, why does the Monitor open anyway, thus covering error. It should know that the build failed and not open the monitor window afterwards right? That’s what every other IDE I have does.
Is there a way to change this behavior?
I know when a build fails, the serial monitor reconnects - does it actually also do that when the upload fails?
If you’re using VSCode, it’s ‘merely’ a matter of switching to the build terminal via the dropdown.
I don’t see an option for either the VSCode plugin, nor the PlatformIO CLI to behave otherwise.
Yes I just retested, it switches to the terminal if the build or the upload fails.
I know I can just switch back, but it’s giving the false impression that you are monitoring the new code.
It’s very annoying, if the upload does not build and upload, it should not switch.
I see this has been an open issue since 2018.
opened 12:37AM - 13 Nov 18 UTC
closed 03:58PM - 02 Feb 21 UTC
bug
if you have the serial monitor open when you invoke the 'upload' command, platfo… rmio switches back to serial console immediately after any build errors, effectively removing the build error from the screen. if you're not keeping a keen eye on the build output window during the build, you may miss the fact that the build/upload failed, and waste a bunch of time wondering why the changes you just made aren't reflected on the device.
it would be _much_ better if the build stopped after an error and **didn't** switch back to the serial monitor.
1 Like
I noticed this as well, often use upload to get a build and uplaod doen, step away to hget a drink come back and it looks like new build is running which is confusing,
1 Like