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
Related to: janet-lang/circlet#17 - I have found a similar issue in my bespoke web server implementation - however, it can be distilled down to the following small snippet fail case:
To reproduce the failure, simply swap the janet_dostring() lines so you execute the one with the os/shell call in it. It will not finish block evaluation and return the string "bob" as it should.
Compare to a valid Janet in the REPL, which will reproduce the behavior as expected.
(do (os/shell"whoami") "bob")
mcarter"bob"
FWIW, this is under Janet 1.20 built from the tag
The text was updated successfully, but these errors were encountered:
Functions that use the event loop must have a call to janet_loop to run the event loop to completion. I guess the next question would be, should janet_dobytes and janet_dostring call janet_loop under the hood - they predate the event loop so currently they don't.
Related to: janet-lang/circlet#17 - I have found a similar issue in my bespoke web server implementation - however, it can be distilled down to the following small snippet fail case:
To reproduce the failure, simply swap the janet_dostring() lines so you execute the one with the os/shell call in it. It will not finish block evaluation and return the string
"bob"
as it should.Compare to a valid Janet in the REPL, which will reproduce the behavior as expected.
FWIW, this is under Janet 1.20 built from the tag
The text was updated successfully, but these errors were encountered: