I have version 7.3. The problem was that i have to start the interactive racket from the scratch.rkt file which imports from other modules. I am using racket on Emacs with the Geiser mode.
On Sunday, June 23, 2019 at 4:55:20 AM UTC+2, Ben Greenman wrote: > > I tried to reproduce this problem, but wasn't able to. > > Which version of Racket are you using? How did you run the program? > > On 6/20/19, Amir Teymuri <[email protected] <javascript:>> wrote: > > I have the following situation: > > > > mylibrary: > > > > - src > > - font.rkt > > - gui.rkt > > - scratch.rkt > > > > > > So the src/ directory and the scratch.rkt file live in the same > directory > > mylibrary/. According to the documentation of Modules > > (https://docs.racket-lang.org/guide/module-basics.html): > > > > The "sort.rkt" module uses the relative paths "db/lookup.rkt" and > > "machine/control.rkt" to import from the database and machine-control > > libraries... > > > > So i put these lines in my scratch.rkt: > > > > #lang racket > > > > (require "src/font.rkt" > > "src/gui.rkt") > > > > but upon requiring the modules i get the error: > > > > > > > > (require "src/font.rkt" > > "src/gui.rkt") > > > > Error: struct:exn:get-module-code > > > > get-module-code: no such file: > #<path:/path/to//mylibrary/src/src/font.rkt> > > > > Why is Racket putting another src/ before the actual src/ directory? > > > > Thanks, > > Amir > > > > -- > > 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 [email protected] <javascript:>. > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/racket-users/ed560f1e-93df-4835-ad62-0d8b76cd8ed6%40googlegroups.com. > > > > For more options, visit https://groups.google.com/d/optout. > > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/3ffd20cb-2f00-4b98-8b48-054cf4a265b3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

