-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
GNU Guile Scheme REPL not showing output #412
Comments
I think you need a newline at the end of the display call? Which isn't ideal, but that should work? This is something that would probably be fixed by the future stdio client support rewrite. |
So this right, (display "Hello, World!\n") Then
|
I tried out
That was working without any issues, so may just be an issue with with stdio client in conjure as you mentioned. So it's not too urgent for me. I can work with
|
Sorry it's been so long, someone on Mastodon just brought this to my attention again. Had a quick go at fixing it and it seems to work for me now. If someone else can confirm that I'll merge and close this 😄 It's on the develop branch. |
Seems to be fixed in develop! Thanks a lot! Saved from Emacs once again 😆 |
🍻🥳🎉🎉🎉
…On Fri, 1 Dec 2023, 22:56 Aleksander Sumowski, ***@***.***> wrote:
Seems to be fixed in develop! Thanks a lot! Saved from Emacs once again 😆
—
Reply to this email directly, view it on GitHub
<#412 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACM6XPYEF4VUCLCGNQUV5DYHJOABAVCNFSM6AAAAAAQJSRJ7CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZWHA4DMMRQGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
With the current situation the following doesn't work as expected for me: (define (print-hi-and-return x)
(begin
(display "Hi")
(newline))
x)
(print-hi-and-return 123)
;; The above returns:
123 If the Guile client were to behave similar to the client for built-in Fennel shouldn't it produce output in the log like the following: ; (out) Hi
123 At the Guile repl this happens: scheme@(guile-user)> (print-hi-and-return 123)
Hi
$5 = 123
scheme@(guile-user)> I have a possible fix with #552 but that may not be what people expect with the Guile client. (define (return-values)
(values 123 "Hi"))
(return-values)
;; Returns only:
123
;; Should be:
123
"Hi" At the Guile repl: scheme@(guile-user)> (return-values)
$9 = 123
$10 = "Hi"
scheme@(guile-user)> I'm planning on working on a PR to address the second problem but that might be better dealt with in another issue. |
Merged the PR so that should address the print example given, the final multi-value return example still doesn't work though. We might need to do some wider refactoring to get that to work as expected, clearly we're missing something fundamental and a change in approach might make the behaviour flawless while simplifying the code. |
I'm trying to do some very simple Scheme REPL work.
I've got a very simple config and almost everything is working except for,
Which is just giving me, when I do
<leader>ee
,Here's my relevant config,
And the script for creating the REPL and socket,
In the
guile
command line REPL, I get the expected result,Contrast this with
ConjureSchool
,Here doing
<leader>ee
on this form results in,The
(out) Hello, World!
as expected.So is this perhaps a GNU Guile limitation?
I'm very new to Lisp, Scheme, Guile and Conjure, so hopefully I'm not making some very obvious novice mistake. If I am please let me know.
The text was updated successfully, but these errors were encountered: