Not planned
Description
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
Operating system
macOS
Operating system version
12.5.1
Additional context
No response
Issue checklist
- I searched for previous reports in the issue trackerI verified the problem still occurs when using the latest nightly buildMy report contains all necessary details
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
[-]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[/+]ubidefeo commentedon Sep 2, 2022
@kittaakos
when you need to change the password you use the menu item Sketch > Configure and Upload
per1234 commentedon 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.
[-]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[/+]