Cannot run code on Arduino IDE 1.8.4/1.8.8

Hello,

I tried to run code on Arduino IDE 1.8.4 that I wrote 2 years ago (and ran just fine then) and the compiler shows me errors!! I downloaded the Arduino 1.8.8 and tried, it does not show me errors, but it prints whatever characters on the serial, so it does not work either. A few years ago I had the same problem with different code, that ran ok on oldest IDEs and when changed to new one then, I faced problems. What is happening with IDE versions? Why they are so unstable? And I am talking about the same code. Nothing changed.

Thank you...

t it prints whatever characters on the serial

Check sereial monitor speed.

The bitrate is 38400 both in the Arduino code and the serial monitor. I use FONA libraries inside.

Thank you

If I find the IDE I used 2 years before, and install it (uninstalling the one I have now), should I install the libraries from the beginning?

and ran just fine then) and the compiler shows me errors!! I downloaded the Arduino 1.8.8 and tried, it does not show me errors

A good starting point would be to post the errors returned by the IDE/compiler.
Posting the code within tags would also help...
Yes, there may be compiler & library incompatibilties over time, but only you can see what’s happening.
It’s unlikely to be ‘stability’ issues in the Arduino part of the toolchain (there are occasionally issues, but they’re usually repeatable), just that the world has moved on, perhaps some bug fixes or added features in those libraries.
Unfortunately, as an open-source environment, the user contributed content can vary wildly in quality or support.

Possible the updates of the libraries has done it.

Where can I find what was the Arduino IDE released on June 2017?

I installed the Arduino 1.0.6.

The code is this:

void setup()
{
    Serial.begin(38400);
}

void loop()
{
    Serial.flush();
    Serial.println("START:");
    read_battery();
    read_RSSI();  
    Serial.println("END");
    delay(2000);
}

It prints:

START:
START:
START:
START:
START:
START:
START:
START:

(8 times and it stops)

Any help???

It looks like your sketch is resetting with read_battery() or read_RSSI().

This is often caused by power issues causing a reset. You will have to document your hardware and software for anyone to make any suggestions. Your problems don't look related to IDE version IMHO.