Re: scribble cannot find module that racket finds

Shu-Hung You <[email protected]>
Newsgroups gmane.comp.lang.racket.user,gmane.lisp.scheme.plt
Message-ID <CAMTzy+aRs1Nf3tEq1EMzqJSRaMGG-fSenUi8GuizLvhJw7raog@mail.gmail.com>
On Sun, Nov 3, 2019 at 2:26 PM Hendrik Boom <hendrik-e9JHxFxFq/[email protected]> wrote:
>
> scribble does not find module "inclusion.rkt" even though racket does.
> There must be a work-around, mustn't there?
>
> I can (require "inclusion.rkt") jusr fine from racket
>
> t3.rkt:
>
> #lang racket
> (require "inclusion.rkt")
> foo
>
> inclusion.rkt:
>
> #lang racket
> (define foo 'foo)
> (provide foo)
>
> running it:
>
>
> hendrik@midwinter:~/dv/scribble$ racket t3.rkt
> 'foo
> hendrik@midwinter:~/dv/scribble$
>
>
>
> But when I try from scribble it goes wrong:
>
> t3.scrbl:
>
> #lang scribble
> @(require "inclusion.rkt")
> foo
>
> same inclusion.rkt file
>
> Run it:
>
>
> hendrik@midwinter:~/dv/scribble$ scribble t3.scrbl
> standard-module-name-resolver: collection not found
>   for module path: scribble/lang/reader
>   collection: "scribble/lang"

The error message here is a little opaque, but the actual cause is
that `#lang scribble' does not exist. The available languages include:

;; https://docs.racket-lang.org/scribble/generic-prose.html
#lang scribble/base
#lang scribble/manual (like Racket doc)
#lang scribble/book
#lang scribble/report
(and more)

>   in collection directories:
>    /home/hendrik/.racket/snapshot/collects
>    /home/hendrik/racket-7.4.0.1/collects
>    ... [166 additional linked and package directories]
>   context...:
>    show-collection-err
>    standard-module-name-resolver
>    module-path-index-resolve
>    do-dynamic-require5
>    read-syntax3
>    default-load-handler
>    standard-module-name-resolver
>    module-path-index-resolve
>    module-declared?
>    loop
>    ...cket/cmdline.rkt:191:51
>    "/home/hendrik/racket-7.4.0.1/share/pkgs/scribble-lib/scribble/run.rkt": [running body]
>    temp37_0
>    for-loop
>    run-module-instance!125
>    perform-require!78
> hendrik@midwinter:~/dv/scribble$
>
> (and no, I don't expect it to find the foo provided by the module.  This foo is plain
> scribble text).  But it fails before it gets that far.
>
>
> Is there a way to require packages into scribble that *does* work?
>
>
> -- hendrik
>
> --
> 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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
> To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/20191103202649.2msxe24kkg4sleow%40topoi.pooq.com.

-- 
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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CAMTzy%2BaRs1Nf3tEq1EMzqJSRaMGG-fSenUi8GuizLvhJw7raog%40mail.gmail.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.