<div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)">Hello!</div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)">
I have defined a struct in some file (create.rkt) like this:</div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)">
...</div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)">(provide create make-create)</div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)">(define-serializable-struct create (name key assigned-date due-date))</div>
<div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)">…</div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)">
In client.rkt, given name, key, assigned-date, and due-date as well as an out-port called out, I do:</div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)">
(require "create.rkt")</div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)">...</div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)">(define some_var (make-create name key assigned-date due-date))</div>
<div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)">(write (serialize some_var) out)</div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)">
In another file, server.rkt and with the in-port analogous to out, I do</div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)">
(require "create.rkt")</div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)">...</div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)">(define request (deserialize (read in))</div>
<div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)">However, when my program gets to this point, it fails with the following error:</div>
<div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)"><div>dynamic-require: unknown module: '#%embedded:g1612:create</div>
<div><br></div><div> === context ===</div><div>/usr/local/Cellar/plt-racket/5.2/lib/racket/collects/racket/private/serialize.rkt:601:8: loop</div><div>/usr/local/Cellar/plt-racket/5.2/lib/racket/collects/racket/private/serialize.rkt:596:2: deserialize</div>
<div>/Users/dlobraico/Sandbox/2012-cs151-staff/information-systems/server.rkt:29:0: handle</div><div>/Users/dlobraico/Sandbox/2012-cs151-staff/information-systems/server.rkt:47:12</div></div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)">I am having trouble even beginning to debug this because it's not entirely clear to me why dynamic-require wouldn't be able to find the create module here and the error message is slightly cryptic to me. Any pointers or guidance would be greatly appreciated! </div>
<div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)">Thanks,</div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)">
Dominick</div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="font-family:Helvetica;font-size:13px;background-color:rgb(255,255,255)"><br></div>