[racket] read (compiled): code compiled for version A, not B

From: Neil Van Dyke (neil at neilvandyke.org)
Date: Fri Feb 3 21:01:10 EST 2012

Is there a good and convenient way to avoid errors like these?

     compiled/info_rkt.zo::0: read (compiled): code compiled for version 
5.2.0.7, not 5.2.1.3

I was thinking maybe the "compiled" directories could have 
subdirectories for Racket versions.  Although, there might still be 
generated files specific to a Racket version that do not fall under the 
"compiled" directories.

Another way might be that Racket could ignore and overwrite files under 
"compiled" that have the wrong version.  Although, then tools might have 
to open the files to determine whether up-to-date, rather than look at 
only names and filesystem timestamps.

-- 
http://www.neilvandyke.org/


Posted on the users mailing list.