jackfirth / resyntax

A Racket refactoring engine
Apache License 2.0
58 stars 10 forks source link

Cannot open module file "sorted-map" #162

Closed countvajhula closed 1 year ago

countvajhula commented 2 years ago

I'm attempting to install resyntax and ran into this error:

raco setup: 2 making: <pkgs>/uri-old (uri-old)
/Users/siddhartha/Library/Racket/8.3/pkgs/resyntax/linemap.rkt:23:9: cannot open module file
  module path: rebellion/collection/sorted-map
  path: /Users/siddhartha/Library/Racket/8.3/pkgs/rebellion/collection/sorted-map.rkt
  system error: no such file or directory; rkt_err=3
  compilation context...:
   /Users/siddhartha/Library/Racket/8.3/pkgs/resyntax/linemap.rkt
  location...:
   /Users/siddhartha/Library/Racket/8.3/pkgs/resyntax/linemap.rkt:23:9
  context...:
   /Applications/Racket-Latest/collects/compiler/private/cm-minimal.rkt:685:0: compile-zo*
   /Applications/Racket-Latest/collects/compiler/private/cm-minimal.rkt:451:15
   /Applications/Racket-Latest/collects/compiler/private/cm-minimal.rkt:440:12: build
   /Applications/Racket-Latest/collects/compiler/private/cm-minimal.rkt:411:0: maybe-compile-zo
   /Applications/Racket-Latest/collects/compiler/private/cm-minimal.rkt:209:0: compile-root
   /Applications/Racket-Latest/collects/compiler/private/cm-minimal.rkt:105:4
   /Applications/Racket-Latest/collects/setup/parallel-build.rkt:332:9
   /Applications/Racket-Latest/collects/setup/parallel-do.rkt:455:25
   /Applications/Racket-Latest/collects/setup/parallel-do.rkt:441:20: loop

It's likely caused by resyntax depending on the sorted-map module in rebellion/collection which was added relatively recently, and my local version of Rebellion probably being older.

I'm not sure how this should be handled. Ideally it would be possible to depend on a specific version of Rebellion or later in info.rkt, but I forget whether that's supported or not.

jackfirth commented 2 years ago

Update rebellion. I gotta get around to actually using #:version in my info.rkt files..