Known issue with rc9.1?

Quick question before I spend more time debugging. Last night I got a message that htere was an IDE update. So I let it update to:

Version: 2.0.0-rc9.1
Date: 2022-08-02T13:31:56.030Z
CLI Version: 0.25.1 [436f0bb9]

I was working with my custom ESP32 board without trouble before that (except for some issues with the board not being automatically recognized for serial and upload)
Now I can't upload code anyore and get this esptool message:

Traceback (most recent call last):
File "serial/serialposix.py", line 322, in open
OSError: [Errno 16] Resource busy: '/dev/cu.usbmodem14201'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "esptool.py", line 4582, in
File "esptool.py", line 4575, in _main
File "esptool.py", line 4074, in main
File "esptool.py", line 120, in get_default_connected_device
File "esptool.py", line 313, in init
File "serial/init.py", line 90, in serial_for_url
File "serial/serialposix.py", line 325, in open
serial.serialutil.SerialException: [Errno 16] could not open port /dev/cu.usbmodem14201: [Errno 16] Resource busy: '/dev/cu.usbmodem14201'
[2445] Failed to execute script esptool
esptool.py v3.1
Serial port /dev/cu.usbmodem14201
Failed uploading: uploading error: exit status 1
I've already tried quitting and restarting my computer, but no luck. Anyone else?

Hi @mzincali. Thanks for giving the Arduino IDE 2.0.0 release candidate a try, and for your report.

There is a bug in Arduino IDE 2.0.0-rc9.1 that causes uploads to fail when Serial Monitor is open:

This bug has already been fixed and will be available in tonight's nightly build of the Arduino IDE 2.x. Until then, please make sure to close Serial Monitor before uploading as a workaround for the bug:

image

Thank you. That helped!

However, you should know that I have a second sketch window open, which is showing the serial output from the same serial port that the first sketch (the one that wasn't working), and that is happily displaying serial output, and not interfering with uploads from the first window.

It's as if the issue you mentioned is only a problem if it is in the same sketch window as the code being uploaded.

Would you like this bug filed anywhere in particular? Github?

(I have a couple more similar serial bugs which I'm not sure are IDE issues or using a custom ESP32 with JTAG).

As I mentioned above, the bug has already been reported and fixed, so no further action is needed.

You are welcome to report those here or on GitHub.

The forum is the appropriate place for discussion and less structured feedback, while the issue trackers of Arduino's projects on GitHub are the appropriate place to make formal bug reports and feature requests to the developers, who are less likely to see the discussions here on the forum.

Even when submitting a formal report, you are always welcome to open a topic here on the forum to invite discussion and feedback about your proposal from the community here. I have seen that such discussion can lead to refinements in the final formal report.

The fix for the bug that caused uploads to fail when Serial Monitor is open is now available from the latest nightly build of Arduino IDE 2.x.

The download links for the nightly build are listed on the "Software" page here:

https://www.arduino.cc/en/software/#nightly-builds

I'm specifically talking about the bug where I have two sketches open: main sketch that uploads but can't show any serial console info, and the second sketch which shows all the serial console logging that I would expect to be seeing in the uploaded main sketch, but can't. Trying to show the console shows me an empty console, while the other sketch's console will continue to show the serial logs.

OK, great. Please do report that issue.