-
-
Notifications
You must be signed in to change notification settings - Fork 444
Unsaved changes are not compiled #61
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
Comments
I would argue with this. We either save automatically before running a compile, or we compile the previous, unsaved state. As a dev, I would never expect to compile something that is not saved. |
That decision was made 15 years ago, so there's no point in arguing about it. |
@per1234 we'll make a task for @kittaakos :) |
@per1234, I assume the same should happen for upload using programmer. What about burning the bootload? The bootloader is unrelated to the sketch state, right? Thanks! |
Correct. Both "Upload" and "Upload Using Programmer" compile the sketch before doing the upload and they both currently compile the saved version of the sketch just as "Verify/Compile" does.
That's correct. The sketch is not compiled when doing a Tools > Burn Bootloader. It just goes straight to flashing a pre-compiled binary bundled with the board platform, typically using the same tool that is used for the upload process. So the open sketch is completely irrelevant to the Burn Bootloader process. The only things that affect it are the board selection, programmer selection, and the port selection (and the port is only used by a couple type of programmer). |
Thank you, Per. 👍 I have implemented this, we will make it available to the public soon. |
Closing as fixed by f53013b |
Describe the bug
The saved versoin of the sketch is always compiled, even when there are unsaved changes in the editor.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The sketch code in the editor should be compiled, as is done in the Arduino IDE.
Desktop (please complete the following information):
Date: 2021-02-10T12:24:17.658Z
CLI Version: 0.15.2 alpha [0d4cb150]
The text was updated successfully, but these errors were encountered: