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

Upload indicated as successful even when it failed #2516

Open
3 tasks done
per1234 opened this issue Sep 26, 2024 · 1 comment · May be fixed by #2518
Open
3 tasks done

Upload indicated as successful even when it failed #2516

per1234 opened this issue Sep 26, 2024 · 1 comment · May be fixed by #2518
Assignees
Labels
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 Sep 26, 2024

Describe the problem

At the end of an upload operation, Arduino IDE displays a notification to communicate the result to the user.

If the operation was successful, the "Done uploading." notification should be shown:

image

If the operation failed, the "Upload error: ..." notification should be shown:

image

🐛 "Done uploading" notification is shown even when the upload failed. The result of the upload will not be clearly communicated to the user, and even if they do notice that the upload failed, they won't have access to the convenient "COPY ERROR MESSAGES" button that is the standard way for support technicians to obtain the upload logs.

To reproduce

  1. If you have an UNO R4 Minima connected to your computer, disconnect it.
  2. Select File > New Sketch from the Arduino IDE menus.
  3. Select Tools > Board > Arduino UNO R4 Boards > Arduino UNO R4 Minima.
    This board was selected arbitrarily for the demo because it does not use a serial port for uploads, and thus avoids an equipment prerequisite for the demo. However, the bug affects all boards; not only the UNO R4 Minima.
  4. Select Sketch > Upload from the Arduino IDE menus.
  5. Wait for the upload operation to finish.

🐛 The upload failed, as expected, but the notification for a successful upload was shown.

Expected behavior

The failure notification is shown when an upload fails:

image

Arduino IDE version

2.3.3

Operating system

Windows

Operating system version

Windows 11

Additional context

I bisected the regression to #2500 / a5bf56f (the fault does not occur when using the build from the previous commit 1ec0a8c).

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Sep 26, 2024
giacomocusinato added a commit that referenced this issue Sep 26, 2024
When parsing a CLI error, check if any metadata from grpc is present before trying to parse it.
Closes #2516
@giacomocusinato giacomocusinato linked a pull request Sep 26, 2024 that will close this issue
4 tasks
@giacomocusinato giacomocusinato self-assigned this Sep 27, 2024
@sterretjeToo
Copy link

  1. If you have an UNO R4 Minima connected to your computer, disconnect it.

Just to make sure that one is aware that this applies to other boards as well. I just did encounter this for a Mega and an Uno R3.

The issue is not yet solved in arduino-ide_nightly-20241001_Windows_64bit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

3 participants