[racket] Handin Server + PLAI problem

From: Eli Barzilay (eli at barzilay.org)
Date: Thu Jan 12 16:28:43 EST 2012

Four hours ago, John Clements wrote:
> I'm having a problem using PLAI plus the handin server.
> Specifically, it looks like using (print-only-errors #t) in my code
> triggers the error
> 
> submit error: Error in your code --
> current-directory: `exists' access denied for /home/clements/class/handin/
> [...]
> In fact, I get the same error when I strip it down to simply
> querying the parameter, with (print-only-errors).  However, it's not
> *all* parameters that trigger the error; I can submit code
> containing (current-error-port) without incident. I've taken a quick
> look at the code, and I can't see how setting this parameter would
> trigger a call to current-directory.

I think that there's some problem where racket will look for its
executable in the current $PATH which leads to these problems.
Initially I thought that a solution would be to allow 'exists access
to all directories in the $PATH, but that sounds shaky, especially if
it changes.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!


Posted on the users mailing list.