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

(wasm shell) sleep/1 example hangs indefinitely #1023

Closed
Jean-Luc-Picard-2021 opened this issue Aug 21, 2022 · 2 comments
Closed

(wasm shell) sleep/1 example hangs indefinitely #1023

Jean-Luc-Picard-2021 opened this issue Aug 21, 2022 · 2 comments

Comments

@Jean-Luc-Picard-2021
Copy link

Jean-Luc-Picard-2021 commented Aug 21, 2022

Maybe this is an issue of flush_output/1. But I don't
get this example working:

test :- write('Hello '), flush_output,
   sleep(1),
   write('World!'), nl.

It hangs here:

https://dev.swi-prolog.org/wasm/shell
image

@Jean-Luc-Picard-2021
Copy link
Author

A related but different bug here:
ciao-lang/ciao#66

@Jean-Luc-Picard-2021 Jean-Luc-Picard-2021 changed the title (wasm shell) sleep/1 hangs indefinitely (wasm shell) sleep/1 example hangs indefinitely Aug 21, 2022
@JanWielemaker
Copy link
Member

Thanks. Was broken after rewrite of the high level Prolog query interface using iterators 😢
Updated dev.swi-prolog.org/wasm. Flush works correctly. See rebinding of standard streams in shell.html.

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

No branches or pull requests

2 participants