Upload fails silently when no board is selected #1714
Labels
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
Under some relatively common circumstances, no board is selected in Arduino IDE, including:
Since all parameters of the upload are defined by the boards platform, it is mandatory that a board be selected in Arduino IDE before uploading a sketch.
It is important for Arduino IDE to clearly communicate this requirement to the user when an upload is attempted without selecting a board.
🐛 Attempting an upload without a board selection fails silently.
To reproduce
Select File > Quit (or Arduino > Quit Arduino for macOS users) from the Arduino IDE menus if it is running.
Delete the following folder to produce the condition of not having a board selected:
<username>
is your Windows username)❗ If looking for it with your file manager or command line, note that the
AppData
folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".<username>
is your Linux username)❗ The
.config
folder may be hidden by default in your file manager and terminal.<username>
is your macOS username)❗ The
Library
folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut.⚠ Please be very careful when deleting things from your computer. When in doubt, back up!
Start Arduino IDE.
Select a port from the Tools > Port menu in Arduino IDE.
ⓘ This step is not required. It is only done to show that the issue is not dependent on a missing port selection (Uploading disabled without port selection #770)
Select Sketch > Upload from the Arduino IDE menus.
🐛 Nothing at all happens. There is no notification, error message, etc.
Expected behavior
Clearly communicate to the user that they must select a board before uploading, as it worked in Arduino IDE 2.0.0-rc9.3.
Arduino IDE version
Original report
2.0.2
Last verified with
9a6a457
Operating system
Windows
Operating system version
10
Additional context
I bisected the regression to 671d2ea / #1415 (does not occur when using the build from the previous commit 9a65ef6)
The previous incarnation of this bug was tracked at #845 and fixed by #1353
Issue checklist
The text was updated successfully, but these errors were encountered: