oleks.litus
2021-9-15 18:34:25

@oleks.litus has joined the channel


dan.ml.901
2021-9-15 22:08:09

When I upgrade Racket versions, the leftover .zo files are the wrong version and most operations will use them and then error out. Is there any option or tooling to convert them or clean them up (short of running a clean script)?


dan.ml.901
2021-9-15 22:09:19

Oh.. I could have my initial operations ignore compiled files.


samdphillips
2021-9-15 22:11:51

I think the consensus is to run something like find . -name compiled \| xargs rm -rf


dan.ml.901
2021-9-15 22:13:17

Yeah, I’ve avoided special commands because this is an end-user workflow that does the same thing all the time…. I’m having them upgrade Racket which will be enough drama already, lol.


dan.ml.901
2021-9-15 22:14:10

Those .zo files are absolutely critical for basic performance… this failure mode is… vexing.


ben.knoble
2021-9-15 22:56:37

Seems like detecting a version mismatch in the zo and recompiling would be easy, so it must not be


dan.ml.901
2021-9-15 23:08:13

Yeah, probably. It’d be a biggish project for sure… but it would be nice to be able to either a. package up a compiled package and distribute it without needing source (preferably in a .zip file) or b. have the normal read-eval for .rkt files be able to handle missing or out of date .zo files (or incorrect versions.


dan.ml.901
2021-9-15 23:08:37

I looked into a. a long time ago but never went anywhere with it…



samth
2021-9-15 23:33:22

For a that’s what raco exe is for


dan.ml.901
2021-9-16 00:04:26

I’ll have to investigate raco exe… for the custom-load package that doesn’t seem promising since I get version mismatches during raco make. Would I be able to skip the raco make step entirely?


samth
2021-9-16 00:05:07

Oh if you’re getting the version mismatch in raco make that’s more surprising


samth
2021-9-16 00:05:56

Also, raco setup will fix things more comprehensively if the code is all in collections


dan.ml.901
2021-9-16 00:07:21

I think part of my issue is that despite being in a collection, I have multiple “root” .rkt files and need to begin the recursive setup/make at each root


samth
2021-9-16 00:08:19

If it’s a collection then raco setup that-collection should do the trick


samth
2021-9-16 00:08:22

Cleaning can also be done with raco setup -c


dan.ml.901
2021-9-16 00:15:31

ah, and -K will cause it to stop recursing into dependent installed packages