Closed
Description
Describe the bug
A fresh install does not have any port selected. A new user may not realize they need to select a port, or perhaps they are unable to select one due to a driver or hardware problem.
Since a port selection is required for a standard upload, the upload is expected to fail under these cases but the IDE should clearly communicate the problem to the user.
This is done normally, but in the specific case of a fresh install the Upload attempt simply has no effect at all, leaving the user confused.
To Reproduce
- Quit the IDE if it is running.
- Delete the configuration folder (simulating a fresh install):
- Windows:
C:\Users\<user name>\AppData\Roaming\arduino-ide\
- Linux:
~/.config/arduino-ide/
- macOS:
~/Library/Application Support/arduino-ide/
- Windows:
- Start the Arduino IDE.
- Select Tools > Board > Arduino AVR Boards > Arduino Uno from the Arduino IDE menus.
(Selected arbitrarily. The issue is not board specific.) - Select Sketch > Upload from the Arduino IDE menus.
🐛 Note that nothing at all happens and there is no feedback. - Click the "Upload" button.
🐛 Note that nothing at all happens and there is no feedback. - Connect an Arduino board to your computer.
(or anything that produces a serial port) - Select the port from the Tools > Port menu.
- Select Sketch > Upload from the Arduino IDE menus.
- Wait for the upload to finish.
- Disconnect the Arduino board from your computer.
- Select Sketch > Upload from the Arduino IDE menus.
🙂 The upload fails with a meaningful error message:Upload error: Failed uploading: no upload port provided
Expected behavior
Always communicate to the user when an upload is attempted without a port selected.
Desktop
- OS: Windows 10
- Version: 2.0.0-rc2-snapshot.c064673
Date: 2021-12-15T09:32:43.552Z
CLI Version: 0.20.2 [13783819]