-
Notifications
You must be signed in to change notification settings - Fork 23
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
Repl doesn't return any output? #16
Comments
I had to insert two newlines between each command (or press enter twice after each line) to receive a response. If you only use one newline you get the |
meanwhile in my machine
(doesn't seem to work) |
what OS and terminal are you using? Most terminals submit the result after each line. Ctrl-D should work to close the input stream and push everything, but it's obviously not optimal since you can't write anything after that. |
It seems like this code: /-- Get lines from stdin until a blank line is entered. -/
partial def getLines : IO String := do
match (← (← IO.getStdin).getLine) with
| "" => pure ""
| "\n" => pure "\n"
| line => pure <| line ++ (← getLines) may fail on windows and cause it to keep asking for lines forever if a blank line is sent as |
I am using vscode under windows |
@Kreijstal, would you mind checking if the problem has been resolved now? |
I am trying to use the repl, I have no idea how is it supposed to work but I receive no output
after ctr+c
I get
am I doing something wrong?
The text was updated successfully, but these errors were encountered: