In my Racket program, I get the error message: "module: identifier already required in doc" when I try to require code from a file that I've written. But when I copy and paste the code into the requiring module, it works fine. Ideas?
I've tried using (provide (all-defined-out)) as well as listing all of the functions names in the provide form. By the way, I'm coding this in Scribble files rather than straight Racket files.
@(require racket/date
racket/file
racket/string
racket/list
racket/function
racket/format
db
"directories.scrbl"
"model-files.scrbl"
)
Note that all the imports work fine from the directories.scrbl file, but the problem happens when I require model-files.scrbl.
Update: It's definitely a problem with Scribble. I changed all the code to Racket code from Scribble and the problem disappeared.