REQUEST: automatically skip "verify" if already verified and no additional file changes #2609
Closed
3 tasks done
Labels
conclusion: declined
Will not be worked on
topic: code
Related to content of the project itself
type: enhancement
Proposed improvement
Describe the request
Hi, I see a recent update allows skipping verification during upload. I don't want to use this because it's nice to verify. But it led me to an idea: if it's already been verified but it failed to upload, then when I try again to upload there is no need to verify a second time (unless changes were made in any of the files).
Two possible implementations:
general:
upload-only:
Describe the current behavior
Currently, whenever there is an upload failure and I attempt to re-upload a sketch, the IDE does both a "verification" and then attempts an "upload." (Reading patch notes,) There was a recent change to allow skipping of verification COMPLETELY during the upload phase.
While nice, I won't use that feature because when I upload I typically do want it to verify the code in the case that it has not already been verified.
This change request would allow automatic optimization for uploads. Basically, only verify when needed (changes made to files && not already verified during this session). Else, skip verification step and go straight to uploading.
Arduino IDE version
2.3.4
Operating system
Windows
Operating system version
10
Additional context
This could be implemented as an opt-in feature initially, but perhaps in the future (after battle-testing) it could be implemented as a default. I would think most people would prefer to save time by skipping unnecessary repeated-verification steps, so long as there are no file changes and the IDE knows the sketch is already valid from a previous verification (during the same session.)
I think it's smart to make it verify at least once per session at least, just to be certain. I wouldn't a case where someone updates the IDE (or some other change,) and then it skips the verification and fails. That's why I suggest using the session as the limit for what counts as "previously verified." When opening a new window, or when loading a sketch, it would be considered a new session so it will have to run the verification step at least once. After that initial verification (and if no file changes) then it can skip additional verifications during upload.
And one could still manually click the Verify button to run the verification, even if it's already considered "verified" by the IDE. So that functionality would remain the same.
Issue checklist
The text was updated successfully, but these errors were encountered: