Re: [racket-users] Problems with modules and with raco

2016-08-14 Thread rumpz
Thank you for the suggestions. I've tried to do the following to test your guess: -deleted everything except the source files -raco exe app.rkt -raco exe eng.rkt (app is the web app, eng the program I use to create the files with the serialized data, words contains the serializable-struct and

Re: [racket-users] Problems with modules and with raco

2016-08-13 Thread Matthew Flatt
Just after sending, I realized that you may be running a program like "app.rkt" directly with `racket`, and then trying to deserialize from an application created with `raco exe`. That would fail in much the way you describe for my example. If that's the problem, then one possible solution is to

Re: [racket-users] Problems with modules and with raco

2016-08-13 Thread Matthew Flatt
I think we need more of your program to help. In particular, I don't know what you have in mind with `(define-namespace-anchor a)`, and I wonder whether your program uses `load` or `dynamic-require`. I tried completing your example with app.rkt: #lang racket (require "words.rkt"

[racket-users] Problems with modules and with raco

2016-08-12 Thread rumpz
app.rkt: #lang racket (require "words.rkt" web-server/servlet) words.rkt: #lang racket (require racket/serialize) (provide (struct-out word) save-words load-words decline) (serializable-struct word (type ecc.)) (define-namespace-anchor a) (define ns