[racket] DrRacket Plugins require drracket/too-lib alone seems to cause error

From: Stephen De Gabrielle (stephen.degabrielle at acm.org)
Date: Mon Sep 9 02:20:39 EDT 2013

Hi,

'raco setup -l tool-name' fails for tools with only '(require
drracket/too-lib)' fails with an unknown signature error[1]

Requiring 'drracket/tool' resolves the error, but this doesn't match the
plugins documentation. (e.g.
http://download.racket-lang.org/docs/5.3.6/html/tools/ )

I don't know if this is a documentation error, a bug, or if I have just
mis-read the documentation.  I've included a sample of my code [2].

[1] unknown signature error
raco setup: --- summary of errors ---
raco setup: error: during making for <collects>/get-defns (get-defns)
raco setup:   collects/get-defns/tool.rkt:13:12: unit: unknown signature
raco setup:     at: drracket:tool^
raco setup:     in: (unit (import drracket:tool^) (export
drracket:tool-exports^) (define (phase1) (void)) (define (phase2) (void))
(define-local-member-name update-counts get-counts-txt) (define tab-mixin
(mixin (drracket:unit:tab<%>) () (define txt (new text%)) (define/p...
raco setup:     context...:
raco setup:      /Applications/Racket
v5.90.0.9/collects/racket/private/unit-compiletime.rkt:343:0:
process-import/export
raco setup:      /Applications/Racket
v5.90.0.9/collects/racket/private/unit-compiletime.rkt:323:0:
process-tagged-import/export
raco setup:      /Applications/Racket
v5.90.0.9/collects/racket/private/unit-utils.rkt:113:2


[2]example code

#lang racket/gui
(require drracket/tool
         drracket/tool-lib
         string-constants
         framework)
(provide tool@)
(define tool@
  (unit
    (import drracket:tool^)
    (export drracket:tool-exports^)
    (define (phase1) (void))
    (define (phase2) (void))

    (define-local-member-name update-counts get-counts-txt)

Kind regards,

Stephen

--
Stephen De Gabrielle <http://www.degabrielle.name/stephen>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130909/b4e606b4/attachment.html>

Posted on the users mailing list.