-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
racket/gui/base frame lifetime #520
Comments
This probably relates to the change about a year ago, to support multiple REPLs. Even with a single REPL, IIRC, if you (Whereas normally if you So there is some dance trying to figure that out and load it only once, on-demand. Apparently I didn't consider that carefully enough for multiple REPLs. I'll investigate. |
Maybe the answer is to create a distinct namespace in which |
It sounds like you've been struggling with |
I think it's worth me taking another look. It's been close to 10 years. Things may have changed in recent versions of Racket, the operating systems, and/or my brain.
Having said all that, it's worth me taking another look. |
I did loop back to revisit this with commit 7f12cb1. I didn't tag that commit to close this issue, yet. Although I think probably it does, I'm reluctant to declare "mission accomplished!". |
Having lived with commit 7f12cb1 for awhile now, I think this approach does work well and I'm going to close the issue. I very recently fixed two issues related to commit 7f12cb1, #555 and #556, as well as re-fixing issue #519. Although that sounds bad, the time I spent investigating and thinking about those, actually increased my confidence in the new approach. The issues were because I'd overlooked or mishandled a couple details. |
Moving from two comments in #472 by @acarrico to here as its own issue.
Here is an example, but may not be much use. Seems like documentation is the best solution? Starting with something like:
When you hit F5, you get a new repl with a new frame, shown in X11 (normally). After hacking around a while, I have seen racket-mode in a state where the new frame is not shown in X11. In this state, running the program at the command line does create the frame, and killing the process does allow racket-mode to create a new repl which acts normally.
I don't know how to reproduce this reliably though.
Actually I can reproduce this behavior by hitting ^d to terminate the repl. C-c C-\ seems to do it also.
M-x racket-stop-back-end
fixes the issue.The text was updated successfully, but these errors were encountered: