"Sketch > Upload" menu item disabled after upload w/ Serial Monitor open #1722
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Uh oh!
There was an error while loading. Please reload this page.
Describe the problem
Under certain conditions, the Sketch > Upload and Sketch > Upload Using Programmer menu items are disabled after the completion of an upload:
To reproduce
Equipment
Any Arduino board that uses a native USB CDC serial port for uploads.
Examples:
Steps
ⓘ The fault also occurs if the upload operation is triggered by clicking the "Upload" button or using the Ctrl+U keyboard shortcut.
🐛 The Sketch > Upload and Sketch > Upload Using Programmer menu items are disabled for no good reason:
Expected behavior
The Sketch > Upload and Sketch > Upload Using Programmer menu items are only disabled if uploading is impossible. The only conditions under which that would be the case is when no board is selected (and programmer in the case of Upload Using Programmer). However, the Sketch > Upload and Sketch > Upload Using Programmer menu items are even enabled in this case (which is reasonable since it allows the IDE to communicate the requirement of selecting a board and programmer to the user).
Arduino IDE version
d6a4b0f
Operating system
Windows
Operating system version
10
Additional context
The fault first occurs for me with 7d6a2d5 (does not occur when using the build for 6984c52)
I have not been able to reproduce the fault on Linux and the reports have been from Windows users.
I found that the number of platforms installed affects my ability to reproduce the fault. With my full collection of ~40 platforms, I find that the fault only occurs when using ac9cce1 or newer, and that I am unable to reproduce the fault when uploading to a Teensy board even then. So if you are having difficulty reproducing the fault, try a minimal data directory that only contains the single platform of the board you are uploading to.
The upload operation can still be triggered via the Upload button or Ctrl+U keyboard shortcut even after the Sketch > Upload menu item was disabled.
The Sketch > Upload and Sketch > Upload Using Programmer menu items are re-enabled after selecting a different board or port.
The fault does not occur when uploading to boards without a native USB CDC serial port:
Originally reported at https://forum.arduino.cc/t/ide-2-0-2-forgets-how-to-upload/1054971/1
Additional reports:
Issue checklist
The text was updated successfully, but these errors were encountered: