2

I sometimes multitask during a large compile (wifi, etc libraries) and don't get back in time to press the ESP32 upload button. If the connection times out, the IDE recompiles all the source again. Am I wrong that it should know there were no edits therefore the binary is valid and can be uploaded without a recompile?

4
  • Yes, I've noticed this recently - you don't even need the connection error: The verify works fine, no changes are made, and then upon hitting upload, the sketch is recompiled (needlessly). I can't remember if that was always the case, with earlier versions of the IDE, but I assume that it was and I am just noticing it more these days. It is probably due to the IDE being unable to detect any file changes in the sketch and its dependencies - because that "feature" hasn't been coded yet - so the IDE just "plays it safe" and compiles the lot, just in case something had changed in one of the files Commented Jul 31 at 18:04
  • just do the upload from command line Commented Aug 1 at 2:28
  • Yes, earlier versions also recompile before upload. It would seem that the IDE editor's 'dirty-bit' - => unsaved changes exist - should have been consulted. The only case where this might be insufficient is if another process, a standalone text editor, e.g., might have changed the file. But even that is detectable in the IDE by testing whether IDE saved time == file's saved time. Commented Aug 1 at 15:11
  • Which version of the IDE do you use? Commented Aug 2 at 15:58

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.