Description
Describe the problem
Changing from rc9.0 to 9.1 sketches aren't uploading for me anymore.
Two things:
The first dark entry on the left is selected. It just shorts the text of the selected entry and switches to "..." earlier.
Same on the right. The usual dark blue like in the board combobox isn't there. According to the combobox the selection does work:
The nightly build has issue 2) as well, but it does look like in regards to 1) it shows a checkmark next to the selected item.
- Uploading just fails.
Failed uploading: uploading error: exit status 1
That is all. No warnings, no other errors. I'm using verbose output by default.
I still have a second folder with rc9.0.
It still works flawlessly there.
To reproduce
Use latest build of megatinycore (2.5.11).
Select device with optiboot.
Upload.
Expected behavior
That the sketch uploads
Arduino IDE version
2.0rc-9.1
Operating system
Linux
Operating system version
XUbuntu 22.04 LTS
Additional context
I am using megaTinyCore 2.5.11 and uploading using a USB-TTL adapter and optiboot.
Issue checklist
- I searched for previous reports in the issue trackerI verified the problem still occurs when using the latest nightly buildMy report contains all necessary details
Activity
xrunner commentedon Aug 3, 2022
Same issue here. I worked for two hours trying to understand the problem but could never fix it. Something is very wrong with the COM ports assignment to boards ... very strange. All I get is error 1 or exit code. I had to go back to IDE v 1.8.19 until this is fixed because I cannot upload anything to UNO boards.
per1234 commentedon Aug 3, 2022
Hi @InstantMuffin and @xrunner. Please try an upload after making sure the Serial Monitor view in the bottom panel is closed and then tell me whether the upload still fails. If the Serial Monitor is open, you can close it by clicking the X icon that appears when you hover the mouse pointer over its tab:
I am able to reproduce the newly introduced bug where the Serial Monitor interferes with uploads (#1278), but am not certain whether it is the same problem you are experiencing since you didn't mention Serial Monitor as a factor here.
Unfortunately there is a recently introduced bug that can cause the loss of some or all of the verbose upload output: arduino/arduino-cli#1818
This may be the explanation to your observation in the other thread:
You can test this out by disabling verbose output:
☑
compile.You may actually find that you get a more informative output with this preference disabled until arduino/arduino-cli#1818 is fixed.
InstantMuffin commentedon Aug 3, 2022
You are correct. I disabled verbose output during "compile" and "upload" and further disabled the serial monitor as per your exact instructions, and I'm getting:
Failed uploading: uploading error: exit status 1avrdude: ser_open(): can't open device "/dev/ttyUSB0": Device or resource busy
Assuming that by closing the monitor a connection might still be open, I unplugged and reconnected the adapter I am using. No serial monitor window opened, and I was still getting that error.
I am using an ATTiny1627 with optiboot over an (incredibly fake with a completely different pinout) CH340 USB-TTL adapter.
Thank you for your instructions.
If any more information or testing is needed, please let me know.
InstantMuffin commentedon Aug 3, 2022
Ah, a little edit which I am putting in a new reply since you already saw the comment.
Turns out if I closed the monitor, and even after replugging the device, I got this terminal output:
Restarting Arduino IDE (which then had the serial monitor window closed by default) shows that the upload works.
However I'd still like the basic console output saying "Upload complete" instead of just showing a notification window (which disappears after a while and to be honest I find them very intrusive and not up to date with what is happening in the IDE and they block part of the console window - I think those notifications if at all should be in the top right corner).
Just getting this:
even with the notification window leaves me questioning "Did it upload?".
xrunner commentedon Aug 3, 2022
Disabling the serial monitor does allow the uploads!
InstantMuffin commentedon Aug 3, 2022
Yes, and when in doubt, disable it, then restart the IDE, so it starts with the monitor disabled.
jpangburn commentedon Aug 3, 2022
Disabling the serial monitor worked for me. Obviously the 9.0 behavior was better where it didn't matter if the serial monitor was open, but at least this workaround allows program uploads for now.
elector123 commentedon Aug 3, 2022
Me also disabling the serial monitor X fix the issue, on 9.1 I will admit I tried everything else, preferences.txt, device in win 11, the usb cable, 3 types of microcontroller, and going back to ver 1.8.19 which works perfectly, 2 computers. Lost a day of work because of this update that was proposed to me yesterday. I will be more carefull in the future with auto update.
Hopefully they will fix this .....
per1234 commentedon Aug 3, 2022
Multiple distinct defects were reported here. To recap:
We determined in the end that this was #1278, which has already been fixed by #1279.
The fix will be available in tonight's nightly build, or you can get it right now from the links under the "Artifacts" section of this page:
https://github.com/arduino/arduino-ide/actions/runs/2789685901#artifacts
(You must be signed in to your GitHub account for the links to be downloadable)
The "Light (Theia)" theme you are using is deprecated and no longer supported by Arduino (#1283). Please switch to using Arduino's own "Light (Arduino)" theme:
This is already being tracked at arduino/arduino-cli#1818
This is definitely unexpected. I was not able to reproduce it even using a similar setup:
If you are still able to reproduce the problem, this is something we should definitely track. However, I don't think this issue will serve well for that purpose since the issue was only mentioned in a comment.
So please do open a dedicated issue for this specific defect if you can still reproduce it with the latest nightly build.
Please open a dedicated issue for this specific enhancement request. We can not effectively track requests made tangentially in issue comment threads.
I believe this would be resolved by: #1154
Please open a dedicated issues for this specific enhancement request. We can not effectively track requests made tangentially in issue comment threads.
Since the primary defects (failed upload, "Light (Theia)" theme bug) have already been addressed, I will close this as resolved.
Thanks so much @InstantMuffin for this important report (which actually came before my more general #1278)!