Closed as not planned
Closed as 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 tracker
- I verified the problem still occurs when using the latest nightly build
- My report contains all necessary details