Re: [racket] Quick on-screen documentation

10 views
Skip to first unread message

Robby Findler

unread,
Apr 28, 2012, 9:52:52 AM4/28/12
to Laurent, Racket Mailing List
Fix pushed. Thanks!

Robby

On Sat, Apr 28, 2012 at 4:24 AM, Laurent <laurent...@gmail.com> wrote:
>
>
> On Fri, Apr 27, 2012 at 21:54, Laurent <laurent...@gmail.com> wrote:
>>
>>
>>
>> On Fri, Apr 27, 2012 at 21:08, Deren Dohoda <deren....@gmail.com>
>> wrote:
>>>
>>> Sorry, supposed to be to all:
>>>
>>> WinXP, DrRacket 5.2
>>> Edit: Show Active Keybindings:
>>>
>>> string: expects argument of type <character>; given f1
>>
>>
>> Indeed. I'm not sure, but this one might be on DrRacket (shortcuts can be
>> symbols too, normally).
>
>
> Filed a Racket bug report:
> http://bugs.racket-lang.org/query/?cmd=view&pr=12737
>
> In the meantime, before there is an official Racket fix, if this error
> bothers you, you can either replace the offending symbol keybindings in the
> script by character ones only, or edit your
> collects/drracket/private/frame.rkt as in the bug-report (but at your own
> risk).
>
> Laurent
>
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users
>

____________________
Racket Users list:
http://lists.racket-lang.org/users

Deren Dohoda

unread,
Apr 29, 2012, 5:09:07 PM4/29/12
to Robby Findler, Racket Mailing List
I believe this is interfering with Ctrl+n to launch a new window. It
doesn't interfere with Ctrl+t for a new tab.

Launch DrRacket, hit Ctrl+n, I get this:

add-panel: preferences dialog already open, cannot add new panels

=== context ===
C:\Program Files\Racket\collects\framework\private\preferences.rkt:178:2:
add-panel
C:\Program Files\Racket\collects\racket\private\class-internal.rkt:3677:0:
continue-make-super
C:\Program Files\Racket\collects\gui-debugger\debug-tool.rkt:1099:8
C:\Program Files\Racket\collects\racket\private\class-internal.rkt:3677:0:
continue-make-super
C:\Program Files\Racket\collects\macro-debugger\tool.rkt:120:6
C:\Program Files\Racket\collects\racket\private\class-internal.rkt:3677:0:
continue-make-super
C:\Program Files\Racket\collects\deinprogramm\signature\tool.rkt:18:6
C:\Program Files\Racket\collects\racket\private\class-internal.rkt:3677:0:
continue-make-super
C:\Program Files\Racket\collects\stepper\xml-tool.rkt:338:8
C:\Program Files\Racket\collects\racket\private\class-internal.rkt:3677:0:
continue-make-super
C:\Program Files\Racket\collects\stepper\stepper-tool.rkt:166:4
C:\Program Files\Racket\collects\racket\private\class-internal.rkt:3677:0:
continue-make-super
C:\Program Files\Racket\collects\test-engine\test-tool.scm:73:6
C:\Program Files\Racket\collects\racket\private\class-internal.rkt:3677:0:
continue-make-super
C:\Program Files\Racket\collects\xml\text-box-tool.rkt:21:8
C:\Program Files\Racket\collects\racket\private\class-internal.rkt:3677:0:
continue-make-super
...

I'd try to remove it to test if this script is causing the problem,
but I don't understand what I'm supposed to tell raco planet -e ???.

When I skip loading the tool, re-launch DrRacket, Ctrl+n, I get a
different error (so maybe it is not related?):

add-child: child already exists with this path: '("Scripts")

=== context ===
C:\Program Files\Racket\collects\racket\private\class-internal.rkt:3677:0:
continue-make-super
C:\Program Files\Racket\collects\gui-debugger\debug-tool.rkt:1099:8
C:\Program Files\Racket\collects\racket\private\class-internal.rkt:3677:0:
continue-make-super
C:\Program Files\Racket\collects\macro-debugger\tool.rkt:120:6
C:\Program Files\Racket\collects\racket\private\class-internal.rkt:3677:0:
continue-make-super
C:\Program Files\Racket\collects\stepper\xml-tool.rkt:338:8
C:\Program Files\Racket\collects\racket\private\class-internal.rkt:3677:0:
continue-make-super
C:\Program Files\Racket\collects\stepper\stepper-tool.rkt:166:4
C:\Program Files\Racket\collects\racket\private\class-internal.rkt:3677:0:
continue-make-super
C:\Program Files\Racket\collects\test-engine\test-tool.scm:73:6
C:\Program Files\Racket\collects\racket\private\class-internal.rkt:3677:0:
continue-make-super
C:\Program Files\Racket\collects\xml\text-box-tool.rkt:21:8
C:\Program Files\Racket\collects\racket\private\class-internal.rkt:3677:0:
continue-make-super
do-make-object
C:\Program Files\Racket\collects\drracket\private\unit.rkt:4902:2:
create-new-drscheme-frame
file-menu:new-callback method
...

Any ideas?

Deren

Robby Findler

unread,
Apr 29, 2012, 5:18:06 PM4/29/12
to Deren Dohoda, Racket Mailing List
Looks like the call to preferences:add-panel here:

http://planet.plt-scheme.org/package-source/orseau/script-plugin.plt/2/7/tool.rkt

should be outside the constructor of the frame class.

Robby

Laurent

unread,
Apr 30, 2012, 4:29:37 AM4/30/12
to Robby Findler, Racket Mailing List
Thank you both!
The fixed version of the plugin has been uploaded.

To avoid cluttering this mailing list with bugs of the Script Plugin and not of Racket or DrRacket, there is a "Report Bug" item in the script menu, that redirects to the PLaneT bug reporter with some automatically filled in info.
(Though I would then miss Robby's and others excellent and quick answers.)

Meanwhile, more libraries have been parsed (srfi 13 and 14, raco and framework).
Once the new plugin is installed, click on "Import Bundled Script" and choose def-signatures.rkt.
This will update the user script and will ask for the reconstruction of the index on the next use.

http://planet.racket-lang.org/display.ss?package=script-plugin.plt&owner=orseau

Laurent
Reply all
Reply to author
Forward
0 new messages