@laurent.orseau sorry to at you, but I have a weird problem quickscript, some of the included scripts with quickscript-extra have references to quickscript/utils, but I don’t see any module like that in the git repo for quickscript, so I was wondering if my installation is broken or something. I’m using racket 8.0 [cs]
quickscript/utils is in racket 8.2 I believe. Are you able to upgrade your racket distr?
And no worries, happy to help!
At least when bugs are reported I know there are some quickscript users :smile:
If you can’t or don’t want to update the whole racket distr, just doing raco pkg update --clone quickscript
in a directory of your choice (where the git clone will be placed) should work, but it’s safer to update everything just in case. Also, you’ll have nice s-exp comments! :wink:
The file is here: https://github.com/Metaxal/quickscript/blob/master/utils.rkt
oh, ok thank you! I also saw the other messages.
Well I want to update, but not losing the installed packages I remember it was a pain, and I don’t remember how
This can help migrating packages: https://gist.github.com/Metaxal/13c4effc483c5ef9f5797ace4950f97a Install the new racket, then run this script.
It only works if you upgrade from release to release, or snapshot to snapshot though, as they use different directories.
alright i see
so i use the installer script in http://racket.org\|racket.org then i run this
otherwise it’s just a matter of raco pkg migrate <from-version>
alright got it, thank you very much, ill try it now
question, do i have to run racket-uninstall
?
would that remove the pkgs?
that will not remove the packages, only what was previously installed the last time you ran the installer
It’s better to run it to avoid having several versions of racket on the same machine, just to avoid issues
well, it didn’t work there is a folder name 8.0
in ~/.local/share/racket
which i suppose is what i want do i have to modify your script with something like parameterize? migrate also didnt do anything
well, it migrated /some/ packages, but like 4 out of 20 or something like that
have you tried raco pkg migrate 8.0
(or whatever was the previous version you had)
yes, it doesn’t pick up ~/.local/share/racket
it seems
did you install a snapshot or a release right now?
release to release
uh, that’s weird
try raco pkg show
to see what it knows about maybe
Installation-wide:
Package Checksum Source
br-parser-tools 9b2d7cc759b40fd5... catalog...ser-tools
brag d3405dd0abfcf221... catalog...path=brag
levenshtein 47882e819e941121... catalog levenshtein
main-distribution 9de918bdde391320... catalog...tribution
racket-langserver 490c72ad7ef35878... catalog...erver.git
racket-lib 01371177cdc1c63a... catalog racket-lib
[206 auto-installed packages not shown]
User-specific for installation "8.3":
[none]
installation wide packages worked it seems
no user installed package, that’s strange. It’s precisely these packages that my script should migrate
Do you have a ~/.racket
directory?
maybe it got confused between home paths
nope
Do you now have ~/.local/share/racket/8.3/pkgs
and ~/.local/share/racket/8.0/pkgs
?
If so, maybe you can just move the latter into the former, as well as the links.rktd
file
and then run the script again
i have both, alright
i found something though
passing a "8.0"
to read-pkgs-db
could work
maybe use (get-pkgs-dir 'user "8.0")
i tried, same result as raco migrate
argh
ok i copied the 8.0 to 8.3
im running raco setup now
it’s doing something
ah, finally :slightly_smiling_face:
thank you for your support
yep, all fine now, thank you once again
ah, great to know it’s sorted
no problem
This upgrade thing should definitely be more straightforward though :confused:
yeah, I didn’t want to update (even if I really liked the new docs template with its scroll bar) because of the bad experience in the past of losing all pkgs installed
certainly makes sense