You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've debugged Alive and it looks like the text sent to the LSP includes both lines separated by a line terminator. When it comes back there's just the one result.
I haven't figured out how to debug the LSP yet so I can't confirm from both ends but it kind of looks like this is an LSP bug.
The LSP side is doing the right thing. If you send multiple forms to SBCL, it only evaluates the first one.
I'm leaning towards the right fix for this being to not allow multiple forms to be submitted. Otherwise, it opens a list of other problems, like how to deal with some of them starting debuggers and what to do in the case of inline eval. The debuggers might not be a problem if the client sends the forms one at a time. I'm not sure if inline eval could display more than one result, though. I'd have to try it and see.
Looking into it a little more, switching inline eval to use inlay hints would allow multiple results to be displayed. Then it's just a question of whether there's a promise that resolves when a form completely finishes. I think there is, but it might not be reliable. I'll need to check.
Write the lines below and select both to send to repl (alt-shift-enter):
One the first one is sent, x is defined, but y is undefined.
The text was updated successfully, but these errors were encountered: