Skip to content
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

guile: append stray output to log #552

Merged
merged 1 commit into from
Feb 2, 2024
Merged

Conversation

austinmlv
Copy link
Contributor

This checks to see if there was a result found and if so gathers all text from after the end of the last prompt until $n = .... If not then everything from the last prompt up until the next is gathered. In either scenario the stray text is appended to Conjure's log. This makes the Guile client more consistent with the built-in Fennel client.

Also, this uses Fennel's support for multiple cond/body pairs within if forms thus removing a nested if.

This is a possible fix for #412

This checks to see if there was a result found and if so gathers all
text from after the end of the last prompt until '$n = ...'. If not then
everything from the last prompt up until the next is gathered. In either
scenario the stray text is appended to Conjure's log.
This makes the Guile client more consistent with the built-in Fennel
client.

Also, this uses Fennel's support for multiple cond/body pairs within if
forms thus removing a nested if.
@Olical
Copy link
Owner

Olical commented Feb 2, 2024

Oh wonderful! Thank you! Taking a look now.

@Olical Olical merged commit c6d775b into Olical:develop Feb 2, 2024
2 checks passed
@Olical
Copy link
Owner

Olical commented Feb 2, 2024

Tested locally and it's working, however as you said in the original issue it doesn't cover muti value returns. I think we might need a bit of a rethink about how this works if we want to address all of the issues. This is a good incremental improvement though. Thanks!

@austinmlv austinmlv deleted the guile-output branch February 3, 2024 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants