Skip to content

Upload not triggered on fresh install without port selection #702

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
per1234 opened this issue Dec 18, 2021 · 0 comments · Fixed by #1564
Closed

Upload not triggered on fresh install without port selection #702

per1234 opened this issue Dec 18, 2021 · 0 comments · Fixed by #1564
Assignees
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@per1234
Copy link
Contributor

per1234 commented Dec 18, 2021

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

  1. Quit the IDE if it is running.
  2. 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/
      
  3. Start the Arduino IDE.
  4. Select Tools > Board > Arduino AVR Boards > Arduino Uno from the Arduino IDE menus.
    (Selected arbitrarily. The issue is not board specific.)
  5. Select Sketch > Upload from the Arduino IDE menus.
    🐛 Note that nothing at all happens and there is no feedback.
  6. Click the "Upload" button.
    🐛 Note that nothing at all happens and there is no feedback.
  7. Connect an Arduino board to your computer.
    (or anything that produces a serial port)
  8. Select the port from the Tools > Port menu.
  9. Select Sketch > Upload from the Arduino IDE menus.
  10. Wait for the upload to finish.
  11. Disconnect the Arduino board from your computer.
  12. 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]
@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Dec 18, 2021
@per1234 per1234 self-assigned this Oct 20, 2022
@per1234 per1234 added the conclusion: resolved Issue was resolved label Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants