Re: [racket-users] Scribble and examples can't read racket-prefs.rktd

2020-08-16 Thread Deren Dohoda
Thank you Matthew, that did resolve the problem, though I was unable to 
ever determine why I could not display a plot from plot/pict. It seems that 
it was somehow related to (sandbox-output 'string) which could never be 
coerced display a bitmap, pict, etc. Ultimately I just used 
(make-base-eval) instead and skipped the sandbox.

Deren

On Sunday, August 16, 2020 at 8:06:49 AM UTC-4 Matthew Flatt wrote:

> Sandboxed filesystem and unsafety access is too strict for many
> purposes. For documentation, I recommend using a trusted sandbox by
> wrapping the sanebox creation with
> `call-with-trusted-sandbox-configuration`.
>
> Matthew
>
> At Sun, 16 Aug 2020 00:45:46 -0700 (PDT), Deren Dohoda wrote:
> > Hi Racketeers,
> > 
> > I'm going in absolute circles trying to understand what I might be doing 
> > wrong. I can use the command line scribble to generate html, which works 
> > fine except a problem showing # instead of an actual plot/pict 
> image. 
> > And for that matter the package installs fine using a local install. But 
> > trying to run the scribble file in DrRacket always gives me errors like 
> > "cannot read racket-prefs.rkt" or other errors like "cannot reference an 
> > identifier without a definition" and sometimes it will give me errors 
> like 
> > I have used (protect-out ...) somewhere but I am definitely not as I 
> didn't 
> > even learn about this kind of provide until I saw this error.
> > 
> > Does anyone using Windows have experience getting rid of this message or 
> > have an idea what I might be doing wrong? I have a feeling that this 
> > message isn't actually the problem and it's something to do with sandbox 
> > somehow.
> > 
> > @(define this-eval (parameterize ((sandbox-output 'string)
> > (sandbox-error-output 'string)
> > (sandbox-memory-limit 100))
> > (make-evaluator 'racket/base #:requires '("main.rkt" 
> > "fit.rkt" plot/pict)
> > (print-as-expression #f) 
> > )))
> > 
> > Thanks,
> > Deren
>

-- 
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/6852ab0a-ceb4-4799-b842-657582755747n%40googlegroups.com.


Re: [racket-users] Scribble and examples can't read racket-prefs.rktd

2020-08-16 Thread Matthew Flatt
Sandboxed filesystem and unsafety access is too strict for many
purposes. For documentation, I recommend using a trusted sandbox by
wrapping the sanebox creation with
`call-with-trusted-sandbox-configuration`.

Matthew

At Sun, 16 Aug 2020 00:45:46 -0700 (PDT), Deren Dohoda wrote:
> Hi Racketeers,
> 
> I'm going in absolute circles trying to understand what I might be doing 
> wrong. I can use the command line scribble to generate html, which works 
> fine except a problem showing # instead of an actual plot/pict image. 
> And for that matter the package installs fine using a local install. But 
> trying to run the scribble file in DrRacket always gives me errors like 
> "cannot read racket-prefs.rkt" or other errors like "cannot reference an 
> identifier without a definition" and sometimes it will give me errors like 
> I have used (protect-out ...) somewhere but I am definitely not as I didn't 
> even learn about this kind of provide until I saw this error.
> 
> Does anyone using Windows have experience getting rid of this message or 
> have an idea what I might be doing wrong? I have a feeling that this 
> message isn't actually the problem and it's something to do with sandbox 
> somehow.
> 
> @(define this-eval (parameterize ((sandbox-output 'string)
>   (sandbox-error-output 'string)
>   (sandbox-memory-limit 100))
>  (make-evaluator 'racket/base #:requires '("main.rkt" 
> "fit.rkt" plot/pict)
>  (print-as-expression #f) 
>  )))
> 
> Thanks,
> Deren

-- 
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/20200816060642.e5%40sirmail.smtps.cs.utah.edu.


[racket-users] Scribble and examples can't read racket-prefs.rktd

2020-08-16 Thread Deren Dohoda
Hi Racketeers,

I'm going in absolute circles trying to understand what I might be doing 
wrong. I can use the command line scribble to generate html, which works 
fine except a problem showing # instead of an actual plot/pict image. 
And for that matter the package installs fine using a local install. But 
trying to run the scribble file in DrRacket always gives me errors like 
"cannot read racket-prefs.rkt" or other errors like "cannot reference an 
identifier without a definition" and sometimes it will give me errors like 
I have used (protect-out ...) somewhere but I am definitely not as I didn't 
even learn about this kind of provide until I saw this error.

Does anyone using Windows have experience getting rid of this message or 
have an idea what I might be doing wrong? I have a feeling that this 
message isn't actually the problem and it's something to do with sandbox 
somehow.

@(define this-eval (parameterize ((sandbox-output 'string)
  (sandbox-error-output 'string)
  (sandbox-memory-limit 100))
 (make-evaluator 'racket/base #:requires '("main.rkt" 
"fit.rkt" plot/pict)
 (print-as-expression #f) 
 )))

Thanks,
Deren

-- 
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/bb013d47-3f7b-4eb2-979a-a5c55e4b5b3dn%40googlegroups.com.