-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit 1029e0b
committed
Delete temporary sketch copy after build
When a sketch has unsaved changes, a temporary copy of the sketch is
made with those changes applied. This copy is then passed to
arduino-builder.
Previously, this temporary copy was kept around and only deleted when
the IDE was closed. However, all files were written to it again on every
build, so keeping the old files around did not serve any real purpose.
When a file was renamed in the IDE, the original name would still be
present in the temporary copy, and could cause linker errors because
both were compiled.
This commit makes sure the temporary copy is deleted after every build,
instead of at IDE exit, which fixes this problem with renames.
When a file is deleted from the sketch, the file would also be deleted
from the temporary copy, presumably to fix this same problem for
deletes (but renames were forgotten). With this commit, this special
handling for deleting files is no longer needed, so it is removed.
This fixes #4335 1 parent a73d393 commit 1029e0b
File tree
2 files changed
+16
-8
lines changed- app/src/processing/app
- arduino-core/src/processing/app
2 files changed
+16
-8
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 | - | ||
30 | 29 |
| |
31 | 30 |
| |
32 | 31 |
| |
| |||
463 | 462 |
| |
464 | 463 |
| |
465 | 464 |
| |
466 | - | ||
465 | + | ||
467 | 466 |
| |
468 | 467 |
| |
469 | 468 |
| |
| |||
1100 | 1099 |
| |
1101 | 1100 |
| |
1102 | 1101 |
| |
1102 | + | ||
1103 | 1103 |
| |
1104 | 1104 |
| |
1105 | + | ||
1106 | + | ||
1105 | 1107 |
| |
1108 | + | ||
1106 | 1109 |
| |
1107 | 1110 |
| |
1108 | - | ||
1111 | + | ||
1112 | + | ||
1113 | + | ||
1114 | + | ||
1115 | + | ||
1116 | + | ||
1117 | + | ||
1118 | + | ||
1109 | 1119 |
| |
1110 | 1120 |
| |
1111 | 1121 |
| |
1112 | 1122 |
| |
1113 | - | ||
1114 | 1123 |
| |
1115 | 1124 |
| |
1116 | 1125 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
91 | 91 |
| |
92 | 92 |
| |
93 | 93 |
| |
94 | - | ||
94 | + | ||
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
98 | 98 |
| |
99 | - | ||
100 | - | ||
101 | - | ||
99 | + | ||
100 | + | ||
102 | 101 |
| |
103 | 102 |
| |
104 | 103 |
| |
|
0 commit comments