Skip to content

Cannot upload to board over the air, if wrong password was provided once. IDE caches the user fields #1359

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
3 tasks done
kittaakos opened this issue Aug 26, 2022 · 2 comments
Assignees
Labels
conclusion: invalid Issue/PR not valid topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@kittaakos
Copy link
Contributor

kittaakos commented Aug 26, 2022

Describe the problem

When uploading to a MKR1000 based on this tutorial, users have to provide the password. If the password was incorrectly provided the upload with fail with Failed uploading: uploading error: exit status 1. Trying to upload again will always fail because the user fields are cached by the IDE.

To reproduce

  • Follow this tutorial to upload over the air,
  • When prompted, provide an incorrect password,
  • Upload will fail (expected),
  • Upload again; it will always fail because the fields are cached.

Reloading the window, restarting the IDE, or opening a new sketch and providing the correct password solves the issue.

ide2_caching_fields.mp4

Expected behavior

Perhaps there should be a meaningful error code/message from the CLI; authentication failed, and then the IDE will know that the user fields should be discarded.

Or

Provide a command to discard the user fields cache.

Arduino IDE version

7c361cf

Operating system

macOS

Operating system version

12.5.1

Additional context

No response

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
@kittaakos kittaakos added type: imperfection Perceived defect in any part of project topic: code Related to content of the project itself labels Aug 26, 2022
@kittaakos kittaakos changed the title Cannot upload to board over the air, if wrong password was provided one. Cannot upload to board over the air, if wrong password was provided once. IDE2 caches the user fields Aug 26, 2022
@ubidefeo
Copy link

ubidefeo commented Sep 2, 2022

@kittaakos
when you need to change the password you use the menu item Sketch > Configure and Upload

@per1234
Copy link
Contributor

per1234 commented Sep 2, 2022

Closing because this is the intended behavior: #550

I have submitted a proposal for how to make the IDE's behavior more intuitive in this case: #1386

We also need to document this new Sketch > Configure and Upload interface, but that documentation is hosted in other repositories, so the tasks are not tracked in this issue tracker.

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 2, 2022
@per1234 per1234 self-assigned this Sep 2, 2022
@per1234 per1234 added the conclusion: invalid Issue/PR not valid label Sep 2, 2022
@per1234 per1234 changed the title Cannot upload to board over the air, if wrong password was provided once. IDE2 caches the user fields Cannot upload to board over the air, if wrong password was provided once. IDE caches the user fields Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: invalid Issue/PR not valid topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

4 participants