IDE should abort script synchronization sooner when board is not responding

Issue #190 resolved
Turgut Guneysu created an issue

Hi John,

When I use the USB ICON and disconnect the port, IDE goes into a long sequence of :Resaving missing chunk:nn” process.

While this is going on at about 1sec per chunk, the IDE is displaying “not responsive” message. In my case, we are talking about close to a MINUTE of wait with approx 50+ chunks !

One definitely gets the idea that IDE is hung up. Yet if one looks at the display panel, the save process is progressing at a SNAIL’s pace.

Any way to display a message on the IDE about the upcoming LONG save process so the user is not panicking and gets
impatient ?

Probably, most user programs are not going to be as big as my case, Nevertheless, this is disturbing, because one needs to check the console display. Since the chunk counts are known, maybe the message can be above a certain number, eg 15.

Comments (4)

  1. John Maloney repo owner

    I think the IDE was having trouble communicating with the board. I was able to disconnect and reconnect with a large project (MicroHeli) loaded and it took only a few seconds to resync the scripts.

    However, I’ve seen the problem you describe and I agree, the IDE should just “give up” when the board isn’t responding.

  2. John Maloney repo owner

    Fixed in 1.0.11. There were two issues. (1) on some boards, compacting the Flash program memory was causing the serial port to disconnect and (2) the code attempting to save scripts did not notice that the board was not responded so it kept stubbornly trying to save the scripts.

  3. Log in to comment