I've tried fighting with the docs but I don't really understand why the 
error occurs.


(require racket/sandbox)

(sandbox-path-permissions
 (list*
  (list 'execute (current-directory))
  (sandbox-path-permissions)))

(define ev (make-module-evaluator "#lang racket/gui"))
(define eval2 (make-module-evaluator "#lang reader \"reader.rkt\""))

 

ev works fine, is eval2 that throws the error.

This how I found what I wanted (eval my custom language). 
<https://stackoverflow.com/a/33323273/9133066>

This is how I found that you needed to add permissions. 
<https://github.com/racket/sandbox-lib/issues/1#issuecomment-323444988>


The error supposedly comes from this function. 
<https://docs.racket-lang.org/reference/linklets.html#%28def._%28%28lib._racket%2Flinklet..rkt%29._eval-linklet%29%29>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/9624aabc-ae04-43a1-9ba4-0021c8dabe9ao%40googlegroups.com.

Reply via email to