cris2000.espinoza677
2021-11-12 14:12:54

@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]


laurent.orseau
2021-11-12 14:13:54

quickscript/utils is in racket 8.2 I believe. Are you able to upgrade your racket distr?


laurent.orseau
2021-11-12 14:14:03

And no worries, happy to help!


laurent.orseau
2021-11-12 14:14:28

At least when bugs are reported I know there are some quickscript users :smile:


laurent.orseau
2021-11-12 14:20:13

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:


laurent.orseau
2021-11-12 14:31:01

cris2000.espinoza677
2021-11-12 14:31:20

oh, ok thank you! I also saw the other messages.


cris2000.espinoza677
2021-11-12 14:32:02

Well I want to update, but not losing the installed packages I remember it was a pain, and I don’t remember how


laurent.orseau
2021-11-12 14:32:51

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.


cris2000.espinoza677
2021-11-12 14:34:10

alright i see


cris2000.espinoza677
2021-11-12 14:34:29

so i use the installer script in http://racket.org\|racket.org then i run this


laurent.orseau
2021-11-12 14:34:36

otherwise it’s just a matter of raco pkg migrate <from-version>


cris2000.espinoza677
2021-11-12 14:34:50

alright got it, thank you very much, ill try it now


cris2000.espinoza677
2021-11-12 14:40:05

question, do i have to run racket-uninstall?


cris2000.espinoza677
2021-11-12 14:40:25

would that remove the pkgs?


laurent.orseau
2021-11-12 14:48:38

that will not remove the packages, only what was previously installed the last time you ran the installer


laurent.orseau
2021-11-12 14:49:10

It’s better to run it to avoid having several versions of racket on the same machine, just to avoid issues


cris2000.espinoza677
2021-11-12 14:59:47

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


cris2000.espinoza677
2021-11-12 15:00:40

well, it migrated /some/ packages, but like 4 out of 20 or something like that


laurent.orseau
2021-11-12 15:01:12

have you tried raco pkg migrate 8.0 (or whatever was the previous version you had)


cris2000.espinoza677
2021-11-12 15:01:40

yes, it doesn’t pick up ~/.local/share/racket it seems


laurent.orseau
2021-11-12 15:01:53

did you install a snapshot or a release right now?


cris2000.espinoza677
2021-11-12 15:02:07

release to release


laurent.orseau
2021-11-12 15:02:16

uh, that’s weird


laurent.orseau
2021-11-12 15:03:19

try raco pkg show to see what it knows about maybe


cris2000.espinoza677
2021-11-12 15:04:15

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


laurent.orseau
2021-11-12 15:05:37

no user installed package, that’s strange. It’s precisely these packages that my script should migrate


laurent.orseau
2021-11-12 15:06:21

Do you have a ~/.racket directory?


laurent.orseau
2021-11-12 15:06:38

maybe it got confused between home paths


cris2000.espinoza677
2021-11-12 15:06:38

nope


laurent.orseau
2021-11-12 15:08:26

Do you now have ~/.local/share/racket/8.3/pkgs and ~/.local/share/racket/8.0/pkgs ?


laurent.orseau
2021-11-12 15:09:03

If so, maybe you can just move the latter into the former, as well as the links.rktd file


laurent.orseau
2021-11-12 15:09:10

and then run the script again


cris2000.espinoza677
2021-11-12 15:09:29

i have both, alright


cris2000.espinoza677
2021-11-12 15:09:36

i found something though


cris2000.espinoza677
2021-11-12 15:10:06

passing a "8.0" to read-pkgs-db


cris2000.espinoza677
2021-11-12 15:10:09

could work


laurent.orseau
2021-11-12 15:14:02

maybe use (get-pkgs-dir 'user "8.0")


cris2000.espinoza677
2021-11-12 15:14:20

i tried, same result as raco migrate


laurent.orseau
2021-11-12 15:15:31

argh


cris2000.espinoza677
2021-11-12 15:15:46

ok i copied the 8.0 to 8.3


cris2000.espinoza677
2021-11-12 15:15:52

im running raco setup now


cris2000.espinoza677
2021-11-12 15:15:55

it’s doing something


laurent.orseau
2021-11-12 15:16:00

ah, finally :slightly_smiling_face:


cris2000.espinoza677
2021-11-12 15:16:17

thank you for your support


cris2000.espinoza677
2021-11-12 15:16:58

yep, all fine now, thank you once again


laurent.orseau
2021-11-12 15:18:46

ah, great to know it’s sorted


laurent.orseau
2021-11-12 15:18:51

no problem


laurent.orseau
2021-11-12 15:19:28

This upgrade thing should definitely be more straightforward though :confused:


cris2000.espinoza677
2021-11-12 15:20:30

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


laurent.orseau
2021-11-12 15:22:04

certainly makes sense