The GUI-less error you were getting is a bug in the implementation of the
collapsed snip. Specifically it is not wired into the non-GUI reading
support stuff in the wxme library.

Unfortunately it does not seem easy to support the same strategy that the
GUI version uses
In the non-GUI context because the wxme library does not seem to provide a
way to say "here's a snipclass name; please read one of those from this here
port ".

Robby

On Sunday, September 11, 2011, Danny Yoo <[email protected]> wrote:
>> So there must be some context that I'm missing here.  What should I be
>> doing to not get this error at the terminal?  Thanks!
>
> Following up: I figured out that I need to use (make-gui-namespace) to
> create a namespace that knows about the snip classes.  e.g.
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> #lang racket/base
> (require racket/gui/base)
> (parameterize ([current-namespace (make-gui-namespace)])
>  (dynamic-require '(file "snips.rkt") #f))
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>
>
> Thanks!
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/dev
_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev

Reply via email to