Re: [racket-dev] wrong line marked as source of error?
-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 hk...@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- _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] wrong line marked as source of error?
I think this is probably due to a fairly fundamental problem in the way that Racket builds stacks. The whole process is pretty complex, but at a high-level, there are two ways that stack information is obtained: one way (via the errortrace library) is very accurate when it exists, but it does not always exist (specifically, the regions of the stack that correspond to code in the distribution's collects directory are missing from the stack); the other way is via a much less precise mechanism, but is always available. I believe that your screenshot shows you using the former way and so you're missing the part of the stacktrace that is inside the set-admin method. Robby On Tue, Oct 18, 2011 at 6:36 AM, Marijn hk...@gentoo.org wrote: Hi list, while running some code I'm working on, I noticed that the error message reported and the expression highlighted as the source of the error don't seem to match. The error produced is correct, but the line recognized as the source is quite suboptimal. I've tried to cut down on the number of lines in the file by removing uninvolved code, but haven't tried to rewrite beyond that. I've attached the code and a screenshot of my drracket exhibiting the problem. Racket used is this morning's git version. Marijn _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] wrong line marked as source of error?
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). On Tue, Oct 18, 2011 at 6:36 AM, Marijn hk...@gentoo.org wrote: Hi list, while running some code I'm working on, I noticed that the error message reported and the expression highlighted as the source of the error don't seem to match. The error produced is correct, but the line recognized as the source is quite suboptimal. I've tried to cut down on the number of lines in the file by removing uninvolved code, but haven't tried to rewrite beyond that. I've attached the code and a screenshot of my drracket exhibiting the problem. Racket used is this morning's git version. Marijn _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] wrong line marked as source of error?
-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. On Tue, Oct 18, 2011 at 6:36 AM, Marijn hk...@gentoo.org wrote: Hi list, while running some code I'm working on, I noticed that the error message reported and the expression highlighted as the source of the error don't seem to match. The error produced is correct, but the line recognized as the source is quite suboptimal. I've tried to cut down on the number of lines in the file by removing uninvolved code, but haven't tried to rewrite beyond that. I've attached the code and a screenshot of my drracket exhibiting the problem. Racket used is this morning's git version. Marijn _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6dgYYACgkQp/VmCx0OL2yn3wCfUQb8m9A7UQ/17KH1xtjpsVm1 660An1jKCziqlh0/WLYJiAPeCmcsOoDL =4pEM -END PGP SIGNATURE- _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] wrong line marked as source of error?
On Tue, Oct 18, 2011 at 8:39 AM, Marijn hk...@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. Robby _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev