Hi, i'am new in this forum.
But i have the following behavior with Arduino IDE 2.2.1 (also with other 2.x versions).
Yesterday, a sketch (1709 lines) gives no compilation error.
Today i compile the same sketch (with no change), i get error in the line 1726.
Line 1726 in a sketch with 1709 lines?
Scolling to the end of sketch:
I found out, there are 76 line copied and several empty lines are added at the end of the "original" sketch. The "new" sketch has now 1862 lines, but with only rubbish.
I delete these lines (so my sketch has the original 1709line, store this sketch and ...
... when i open it in IDE, there is the same: the same copied and added lines at the end of the sketch?
Has someone same behavior with Arduino IDE?
How can i solve this (in best case without new installation ...) ?
I have not seen this behaviour nor do I recall having seen it reported before, but it may well have been. However, I cannot find it in the list of IDE issues Issues · arduino/arduino-ide · GitHub
on other PC, i have IDE1.8.x, here i could open and delete the "too much" lines, and store this sketch
(now 104kB instead of 106 bevor delating the lines).
and now, also in IDE2.2.1 the sketch is also ok and with no compilation error
but the question is: who add the lines in the sketch?
Ah yes, there's some issues with Onedrive as well, there are many threads here that involves Onedrive. It's not farfetched to conclude local filesharing can have issues too.