Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Error message if upload is not possible #1353

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

Merged
francescospissu merged 5 commits into main from msg-upload-not-possible
Aug 26, 2022
Merged

Conversation

@francescospissu
Copy link
Contributor

@francescospissu francescospissu commented Aug 25, 2022

Motivation

If the user presses the upload button and no board is selected, a message should appear warning what went wrong while uploading. Since verify takes place before upload, the same message that is given when the user tries to compile a sketch without selecting a board should be shown. On the other hand, this message is not very clear, so it should be updated.

Change description

Communicate to user when upload is impossible due to no board selection.
Make error message from compiling without board selected more user friendly.

Other information

Closes #845.
Closes #62.

This fix depends on the changes made here: arduino/arduino-cli#1848. Without it it is not possible to verify that #62 is resolved.

Reviewer checklist

  • PR addresses a single concern.
  • The PR has no duplicates (please search among the Pull Requests before creating one)
  • PR title and description are properly filled.
  • Docs have been added / updated (for bug fixes / features)

Copy link
Contributor

@kittaakos kittaakos left a comment
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good to me.

I am not familiar with the board user fields logic, maybe we should change

if (this.boardRequiresUserFields && !this.cachedUserFields.has(key)) {

to

if (this.boardRequiresUserFields && key && !this.cachedUserFields.has(key)) {

francescospissu reacted with thumbs up emoji
Copy link

@ubidefeo ubidefeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected

francescospissu reacted with thumbs up emoji
@kittaakos kittaakos added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Aug 26, 2022
Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Francesco!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ubidefeo ubidefeo ubidefeo approved these changes

@per1234 per1234 per1234 approved these changes

@davegarthsimpson davegarthsimpson davegarthsimpson approved these changes

+1 more reviewer

@kittaakos kittaakos kittaakos approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

topic: code Related to content of the project itself type: enhancement Proposed improvement

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Communicate to user when upload is impossible due to no board selection Make error message from compiling w/o board selected more user friendly

AltStyle によって変換されたページ (->オリジナル) /