This is weird. I usually parameterize current-namespace when using namespace-* functions, and in this particular case it works fine.
On Tue, Jul 21, 2020 at 11:05 AM Shriram Krishnamurthi <shri...@gmail.com> wrote: > Thank you! Would you know why I might get this error: > > ; require: unknown module > > ; module name: > > ; #<resolved-module-path: <<correct path name>> > > (This is from inside a module.) > > Trying the same at the REPL, I see the same thing: > > > (define n (make-base-namespace)) > > > (namespace-require `(file ,(path->string (build-path "wheats" > "w1.rkt")))) > > [note no optional namespace] > works fine; the name is available at the top-level; but using the same > pathname but with the namespace parameter: > > > (namespace-require `(file ,(path->string (build-path "wheats" > "w1.rkt"))) n) > > ; require: unknown module > > ; module name: > > ; #<resolved-module-path: <<correct path name>> > > (The file in question begins with #lang racket.) > > Shriram > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/CAJUf2yQijBugL3PBo%2B5SBj-9zEKnUc2ejH52VB0AkTW%3DniRGQw%40mail.gmail.com > <https://groups.google.com/d/msgid/racket-users/CAJUf2yQijBugL3PBo%2B5SBj-9zEKnUc2ejH52VB0AkTW%3DniRGQw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CADcuegugFPk2KjHF%3D550%3Dv5dzs1XD74z-mfJWBwBMmC1AtxSzg%40mail.gmail.com.