Skip to content
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

Communicate to user when upload is impossible due to no board selection #845

Closed
per1234 opened this issue Feb 18, 2022 · 1 comment · Fixed by #1353
Closed

Communicate to user when upload is impossible due to no board selection #845

per1234 opened this issue Feb 18, 2022 · 1 comment · Fixed by #1353
Assignees
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@per1234
Copy link
Contributor

per1234 commented Feb 18, 2022

Describe the current behavior

On the first run of a fresh installation, no board is selected in the IDE. A "no board selected" condition might be produced in other ways (e.g., #657) after that time as well.

Compilation and upload commands are configured for each board. For this reason, compilation or upload is impossible if a board has not been selected.

🙁 The Arduino IDE does not provide any indication of what went wrong when an upload is attempted without a board selected.

To reproduce

  1. Quit the IDE if it is running.
  2. Rename or delete (:warning: cautiously) the following folder to simulate a first run:
    • 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 a port from the Tools > Port menu in the 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)
  5. Select Sketch > Upload from the Arduino IDE menus.

🙁 Nothing at all happens. There is no notification, error message, etc.

Describe the request

Clearly communicate to the user when uploading is not possible due to no board selection.

Even though it is not great (#62), there is at least some communication when compilation is attempted without a board selection.

Desktop

  • OS: Windows 10
  • Version: 2.0.0-rc4-snapshot.9b1f15d-snapshot-9b1f15d
    Date: 2022-02-17T10:40:50.003Z
    CLI Version: 0.21.0 [10107d24]

Additional context

This is likely only another symptom of the same issue that causes #770

I decided to create a separate issue report since there is a significantly different expected outcome between the two user paths (in #770 the upload should be successful, while here the issue is only that the failure is not communicated).


Related

@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Feb 18, 2022
@ubidefeo
Copy link

@91volt
isn't this case handled by your latest UX explorations?

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: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants