[racket-dev] Recompiling on "wrong version for compiled code"
I submitted a similar question a few months ago.
http://lists.racket-lang.org/users/archive/2013-January/056038.html
I was using a redefined current-load/use-compiled to delete the old
files, I'm not sure that the code handles all the cases properly, and
that it doesn't delete any source file.
Robby Findler sugested to use 'raco link' to create a collection with
all my personal files, and after the upgrade use 'raco setup' to
recompile all the files. I'm using this solution/workaround.
Gustavo
On Fri, Sep 20, 2013 at 1:14 PM, Tony Garnock-Jones <tonyg at ccs.neu.edu> wrote:
> Hi all,
>
> Is there some reason the compiler can't either (a) ignore or (b) replace
> the outdated .zos when it comes across a situation like the following?
>
> compiled/html-utils_rkt.zo::0: read (compiled): wrong version for
> compiled code
> compiled version: 5.90.0.5
> expected version: 5.90.0.9
> context...:
> standard-module-name-resolver
> standard-module-name-resolver
> standard-module-name-resolver
>
> I just ran into this issue with a webservice I run: I had updated Racket
> but forgotten to blow away the compiled .zos of the webservice, so when
> I restarted the service, it repeatedly failed until I went and deleted
> the .zos by hand.
>
> Tony
> _________________________
> Racket Developers list:
> http://lists.racket-lang.org/dev