[racket] Problem with "Populate compiled directories" and submodules

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Wed Jun 20 13:39:46 EDT 2012

Hi All,

I have a problem which I am unsure how to solve.

I might have a bug in my own code, but since submodules
are new, maybe it is related to the recent changes.

The problems is this:
   - I have implemented a new #lang langauge called bracket
   - programs beginning with #lang bracket runs fine
     in DrRacket *if*  "Populate compiled directories"  is turned off.
The exact error message is as follows:

require: unknown module
  module name: #<resolved-module-path:(submod
"/Users/soegaard/Dropbox/GitHub/bracket/bracket/bracket.rkt"
expression)>
Module Language: invalid language specification in:
#<path:/Users/soegaard/Dropbox/GitHub/bracket/bracket/lang/../bracket-lang.rkt>

The file in the error message
"/Users/soegaard/Dropbox/GitHub/bracket/bracket/bracket.rkt" exists,
and it contains a submodule called expression.

The backtrace begins with:
#<void>: #f:#f
/Applications/Racket Full
v5.3.0.11/collects/errortrace/errortrace-lib.rkt: 434:2

This is with DrRacket, version 5.3.0.11--2012-06-15(4eb0d3d/a) [3m].

The code is available here:
     https://github.com/soegaard/bracket

In the terminal use
   raco link bracket to register the bracket language.


/Jens Axel

Posted on the users mailing list.