Loop of restore previous files craziness

This happened in class today.

I created a small file that exports some stuff and renames signatures from deinprogramm/sdp/image.rkt to match the upper-case style that BSL uses.

Things seemed to be working okay (except that students are so used to Chromebooks and saving stuff in the cloud that they don't understand what "Save the file in the same folder as your file, and make sure you've saved your file, so that DrRacket knows what it is, and no 'apcsp (1).rkt' is not the same name as 'apcsp.rkt', etc.), except that today I asked them to update the file.

Several students (and I) had our computers go into an endless loop where we'd run the main file that had (require "apcsp.rkt") and DrRacket would ask if we wanted to restore files from the previous session, would open a new window, and then do weird things like run out of memory or just say that Interactions was disabled.

The only thing I could think was that maybe an old version of apcsp.rkt was hanging around and DrRacket thought it was an auto-saved file, but I couldn't figure out what was happening.

Any ideas what might be going on? I know the way to actually deal with this is to package up the file so that the require could depend on a package version, and I'm hoping to do that soon, but haven't gotten around to it, yet.

1 Like

let me know if I understand this

  • you are using deinprogramm
  • your program includes (require "apcsp.rkt")
  • you run your program
  • DrRacket triggers 'restore files' dialog, then crashes

It sounds like "apcsp.rkt" has a (require drracket) or similar that calls DrRacket from inside DrRacket

Can you share "apcsp.rkt"?

Best
Stephen :beetle: