[racket-dev] wrong line marked as source of error?

From: Marijn (hkBst at gentoo.org)
Date: Wed Oct 19 04:36:38 EDT 2011

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Robby,

On 10/18/11 17:58, Robby Findler wrote:
> On Tue, Oct 18, 2011 at 8:39 AM, Marijn <hkBst at gentoo.org> wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>> 
>> On 10/18/11 14:09, Robby Findler wrote:
>>> Oh, and one more comment: did  you try clicking on the
>>> left-hand little red icon? That shows you the part of the stack
>>> that is in other files (if there is any to be shown).
>> 
>> I did try that, but it didn't show anything outside my one file.
> 
> At the moment, the more precise (possibly with missing chunks)
> source location annotations override the others. You might get
> more information if you disable debugging.
> 
> I've just pushed an improvement to that window so it shows both
> stacks (when they are both available). Hopefully that'll help in
> the future.

I see the additional information, but getting multiple pages of code
pointed out as the source isn't very helpful.
In this case the error occurs because I broke the contract of the
editor-admin% method get-view by supplying a non-number in one of the
boxes in which it expects return values. I don't understand your
explanation of why it cannot find the line that produced the
non-number input to +, or even the line with that addition outside my
source file. From the user perspective it just looks like racket
blames a semi-random line, which in this case is responsible for some
of the construction of the objects, but hardly the real source of the
error.

Marijn

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6ejBYACgkQp/VmCx0OL2xfcACeJnPEclxp8tdp0vG2GFKYtxOB
+1AAnA19pgBy2tMUxZNzCBk4lGAEPLvi
=4a8o
-----END PGP SIGNATURE-----


Posted on the dev mailing list.