IDE bug - Displayed code does not match what is actually there

I am using IDE 2.3.2 and have been experiencing a strange bug for some time, but in the last couple of weeks it has gotten more and more frequent. I haven't been able to find any other posts talking about it. I am on a macbook, currently running Sonoma 14.4.1.

Essentially I will be working on code and every once in a while when I go to compile or upload I will get syntax errors. It usually claims that there are weird extra letters, or missing chunks of my code. I scour my code and can't find the parts the error code points out - the code showing on my screen is perfectly fine. If I quit the IDE and then reopen my file, sure enough there will be a bunch of extra stuff typed in the middle of a line that wasn't there before or the bottom half of my code will just be gone. I've gotten to the point where I'll notice that the error is happening and I am able to select all my code and copy it before restarting the IDE and then just paste the good code back in and continue, but it feels a bit ridiculous and risky. In the last 2 weeks it has happened many many times and today I opened a large project to make some adjustments and a huge chunk of code is just gone. That led me here because of the pain haha

I haven't been able to find anybody experiencing the same pain and I don't know what to do. I'm getting to the point where I'm kind of afraid to work on my projects because I might loose everything without noticing. Has anybody else had this happen or is it somehow just me? Does anybody have any ideas of what's going on or what I can do to fix it? I think I will try a fresh install of the IDE and hope that helps, but it is just a really weird and frustrating bug that I need to get off of my chest.

Any help would be extremely appreciated.

Sounds like your storage medium is failing.

Meaning where I am saving my code?

Hard disc drives and SSD can form "weak" bits. These bits could be written high or low, but nearby "strong" bits might effect their state (high/low). Do a system check on your storage (HDD/SSD).

Okay I'll do a check in a little while when I get to my computer. I have been working on and saving these files in an iCloud folder, could the cloud saving have something to do with it?

Sorry. I know nothing about cloud saving/compiling except ensure your network is solid, and maybe consider working on a project locally to verify your local drive is good.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.