[plt-scheme] Error-in-file

From: Robby Findler (robby at cs.uchicago.edu)
Date: Wed Nov 24 10:20:40 EST 2004

It is possible -- if you were to create an instance of a snip% class
that responds to clicking and then use `write-special' on the
error-port, that snip will show up in the drscheme window. DrScheme
does this for the bug icon (plt/collects/drscheme/private/debug.ss is a
good starting point).

This is a security hole, however (since the user's program can do the
same thing, and the callbacks will then be executed on DrScheme's
thread/custodian/etc). We have been thinking about how to plug it, but
haven't yet. Still, be warned that we do hope to plug it sometime.

Robby

At Wed, 24 Nov 2004 01:25:30 +0100, Toon Verwaest wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 
> While waiting for respons on the windows-crash, another question:
> 
> Is it possible to display the bug-icon on the left on when giving warnings?
> That way we can link the button with a function which opens a new
> drscheme-window, with the erroring file in it, with marks around
> the error. For the moment the errors of any file appear in the
> evaluated file (which isn't all that good right :))
> 
> Greetz, and sorry for the annoying questions.
> 
> toon


Posted on the users mailing list.