# Scribble as Preprocessor throwing an error

**URL:** <https://racket.discourse.group/t/scribble-as-preprocessor-throwing-an-error/578>\
**Category:** Questions & Answers\
**Tags:** scribble\
**Created:** [January 15, 2022, 1:05am UTC](https://racket.discourse.group/t/scribble-as-preprocessor-throwing-an-error/578 "2022-01-15T01:05:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![leo](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@leo](https://racket.discourse.group/u/leo)\
**Post date:** [January 15, 2022, 1:05am UTC](https://racket.discourse.group/t/scribble-as-preprocessor-throwing-an-error/578/1 "2022-01-15T01:05:14Z")

</div>

👋  
I'm trying to use `#lang scribble/text` but I get this error when trying to process the document:

```scheme
scribble --text test.scrbl #or scribble test.scrbl

```

```scheme
dynamic-require: name is not provided
  name: 'doc
  module: #<resolved-module-path:"/Users/.../test.scrbl">
  context...:
   .../private/map.rkt:40:19: loop
   .../racket/cmdline.rkt:191:51
   body of "/Applications/Racket v8.3/share/pkgs/scribble-lib/scribble/run.rkt"

```

My document (test.scrbl) includes `#lang scribble/text` as the first line and it's inconsecuential whether there is any additional content in the file or not.

I'm using `Racket v8.3 [cs]` in macOS Big Sur (11.6.2) installed through [Homebrew](https://formulae.brew.sh/cask/racket#default)

Am I doing something incorrectly or is it a bug?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![jbclements](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/jbclements/32/11_2.png) [@jbclements](https://racket.discourse.group/u/jbclements)\
**Post date:** [January 15, 2022, 1:16am UTC](https://racket.discourse.group/t/scribble-as-preprocessor-throwing-an-error/578/2 "2022-01-15T01:16:26Z")

</div>

TL;DR: the `scribble/text` language is probably not what you want.

As I understand it, `scribble/text` is not designed for generating documents; instead, it's set up so that racket can `require` this file, and the output is generated.

So, for instance, if you create the file called `foo.scrbl`, containing this content:

```scheme
#lang scribble/text

abcd

```

and, at the command line, run

```scheme
racket foo.scrbl

```

you will see `abcd` as the output.

Again, though, if you're trying to generate a document, `scribble/text` is probably not the language you want.

EDIT: sorry, a bunch of typos. Fixed now.

---

<div class="post-metadata">

**Author:** ![leo](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@leo](https://racket.discourse.group/u/leo)\
**Post date:** [January 15, 2022, 1:56am UTC](https://racket.discourse.group/t/scribble-as-preprocessor-throwing-an-error/578/3 "2022-01-15T01:56:29Z")

</div>

Yes that works  
Thank you!
