This is almost certainly due to Geiser and not Racket. IIRC, there are C-c
C-a and C-c C-b. One of them works with Racket and the other does not.

If you only work with Racket, I would recommend racket-mode
<https://racket-mode.com/> instead of Geiser. It's far more integrated to
Racket.

On Sun, Jun 23, 2019 at 1:03 PM Amir Teymuri <[email protected]> wrote:

> 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]> 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].
>> > 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
> <https://groups.google.com/d/msgid/racket-users/3ffd20cb-2f00-4b98-8b48-054cf4a265b3%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CADcuegtJJ7jPKO0x_idhX37D3nayv%3Dx4ZhFQSF_-m54bat_s6g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to