-
Notifications
You must be signed in to change notification settings - Fork 145
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
On Allegro, unable to pop to sly-db buffer #543
Comments
Yes, I have verified that Allegro is starting up with Presumably this means that my problems come from these other buffers not inheriting that value for |
I have looked and it seems like both for the inspector and for a description window (haven't checked xref windows yet). Seems like when those windows are created they don't get the |
That is a key question i used to be able to answer it handily, but I can't anymore, not without reading as lot of code. However, i see no description of what you are trying to do, from a user's perspective, other than the title of this issue, which is a bit sorry.I wonder if you can give a reproducible recipe from an Emacs -Q recipe that shows the error/inability you are referring to. |
@joaotavora Sorry I wasn't clear enough. I have revised the description of the issue above. I believe I could fix this by sending the value of P.S. I am not sure I understand the relationship between a |
Indeed, when I push the value of I did this by adding a |
See #545 |
Robert, this message is absolutely true. There is no debugger for this context, because the inspection command you invoked runs in a different thread. In the BUT, you may get to inspect a value by hitting to the command loop of a specific thread, presumably stopped in a debugger. However, this is not what you did. You started an inspection by clicking something in the REPL, and I think that runs in a new thread (in the I think it's just as if you had typed If you had typed
It's only in this inspector (and similar inspectors) that I think the value of |
Hm. Likely not. I wonder if I was over-fixing this and if the better solution would have been for me to simply rebind I rarely want to have |
Hmm, I understand this "find any available debugger" case very well, because it's what I normally do. I just do it with Emacs's buffer switcher. But you do bring up an interesting case, which is "switch to the debugger (if any) associated with the thread that spawned this inspection". And that's indeed not working. I'm just not sure your patch is the right way to fix it. But it might be :-) |
When I try to do this, I keep getting the error
"Can't find a *sly-db* debugger for this context"
fromsly-db-pop-to-debugger-maybe
.Here's the recipe for replication:
sly-current-thread
. When I do this, for some reason, it always evaluates to 13.(error "throw me into the debugger")
to get a debugger window.sly-current-thread
there, you get the same value (13).'foo
into the REPLsly-current-thread
. It will bet
.sly-pop-to-debugger-maybe
"[sly] Can't find a *sly-db* debugger for this context"
The key issue seems to be the value of
sly-current-thread
. So I believe if I could inject the value ofsly-current-thread
into the sly popup windows, I could fix this issue.When I try to find the value of this variable in various sly buffers I get quite different things:
mrepl
buffer: the number 13*sly-description*
:t
*sly-inspector for ...
:t
So
t
means the current thread. When I pop up a debugger, the value ofsly-current-thread
there is 13. So I can't get to the debugger from the description or inspection buffers. Is this normal, or an ACL problem only?Also, what is "the current thread"?
If anyone can help me figure out what is going on here, I can provide a fix. Looks like Allegro always has a thread number for its inferior lisp, and maybe the sly code expects that to be
t
?The text was updated successfully, but these errors were encountered: