-
-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test engine links incorrect source location for check-expects in REPL #231
Comments
i know this investigation but the meta-error message about |
I'm having trouble reproducing the error. It seems like, when I create a new frame and don't hit Run the button (but because the language was already set I'll have a REPL) and then I evaluate a failing check-expect, I get a nearby error, but it seems to happen on the line after the one in @shhyou 's report (below). Is it possible I'm missing a step to reproduce?
|
Does this change make a difference?
|
Also, as I'm looking at this code, it does seem a little weird. It definitely expects that DrRacket-specific methods are existing on the frame but it is part of the framework. So probably it should either move into DrRacket somehow, or it should change to use only framework functionality (and check for that functionality's existence). The latter option can't be done entirely, tho, because the framework doesn't have an equivalent of the |
I am using #lang based SLs. Menu-based SLs don't have this issue.
Meanwhile, highlighting after clicking the hyperlink is currently working in menu-based SLs. Can #lang based SLs use the same mechanism? |
So here's the configuration to reproduce the error:
The dependency on step 2 is totally unexpected! |
and then use that generalization inside srcloc-snip related to racket/htdp#231
…name-matches? related to racket/htdp#231
I pushed some changes that should help the situation here. One difference: the highlights are now based on the selection, not using pink highlighting. |
The test engine source hyperlinks are not working for check-expects in REPL.
Expected behavior: highlight the failing check-expect
Actual behavior:
In a saved editor: nothing happenedalso got the error messageThe text was updated successfully, but these errors were encountered: