[racket-dev] Running into phase-error issues

From: Danny Yoo (dyoo at cs.wpi.edu)
Date: Sun Aug 14 19:46:46 EDT 2011

I'm running into some problem when using dynamic-require-for-syntax:
if the module I'm requiring itself requires another module, I
inevitably hit the following error:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
dyoo at thunderclap:~/phase-error$ racket query.rkt
link: reference (phase 1) to a variable in module
"/home/dyoo/phase-error/structs.rkt" that is uninitialized (phase
level 0); reference appears in module:
"/home/dyoo/phase-error/record.rkt" in: resource1.1

 === context ===
/home/dyoo/phase-error/record.rkt: [running body]
/home/dyoo/phase-error/query.rkt: [running body]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


I don't know if I'm just doing something silly or not, so I haven't
submitted this as a bug report yet.  To reproduce, untar:

     http://hashcollision.org/tmp/phase-error.tar.gz

and run query.rkt.


Posted on the dev mailing list.