Dear all,
I'm having difficulties compiling racket/place code using both raco exe and DrRacket menu item
I've isolated the simplest example reproducing the behavior
The parent and worker files are as below, taken from the racket reference
 http://docs.racket-lang.org/reference/places.html
Both files are located the same directory
;===============================
;place-parent.rkt
;===============================
#lang racket
(require racket/place)
(let ([pls (for/list ([i (in-range 2)])
             (dynamic-place "place-worker.rkt"
                            'place-main))])
   (for ([i (in-range 2)]
         [p pls])
      (place-channel-put p i)
      (printf "~a\n" (place-channel-get p)))
   (map place-wait pls))

;===============================
;place-worker.rkt
;===============================
(module place-worker racket
(require racket/place)
(provide place-main)
(define (place-main pch)
  (place-channel-put pch (format "Hello from place ~a"
                                 (place-channel-get pch)))))
    
    
;===============================
;Complation:
;===============================
       
I compile place-parent as follows.
raco exe place-parent.rkt
compilation is successful and generates no messages.
However, I receive the below-listed run-time error when launching the resulting executable
I would note:
1) Error  occurs twice (one for each call to dynamic-place) in place-parent 2) error is being generated in place-worker by standard-module-name-resolver 3) place-parent provides the expected (good) behavior when run under Dr. Racket
4) Racket version is 5.3.3  o/s is windows XP sp3,
I strongly believe I'm failing to set the module-path argument in the dynamic-place procedure correctly, but I could use a helpful hint at this point. I'm finding the module-path documentation a little confusing.
Thank you very much
Zack
===================;=====ERROR==================================
place-worker.rkt:2:21: racket: standard-module-name-resolver: collection not found
  collection: "racket"
  in collection directories:
  in: racket
  context...:
   standard-module-name-resolver
   standard-module-name-resolver
place-worker.rkt:2:21: racket: standard-module-name-resolver: collection not found
  collection: "racket"
  in collection directories:
  in: racket
  context...:
   standard-module-name-resolver
   standard-module-name-resolver
;==================================================================

____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to