Stream: beginners

Topic: Roc REPL behaving weirdly


view this post on Zulip Kevin Hovsäter (Feb 22 2025 at 08:04):

I tried to enter a block string inside the Roc REPL and assumed I had to use \ to continue over multiple lines (I later learned I could use C-v C-j to produce a new line thanks to the :help command. :smile:). I typed the following into the REPL:

"""\
123"""

And this trashed my terminal and produced the following output:

roc-repl-shenanigans.mov

I assume this is a bug?

view this post on Zulip Brendan Hansknecht (Feb 22 2025 at 18:02):

I'm not sure if anyone has ever tried multiline strings in the repl

view this post on Zulip Kevin Hovsäter (Feb 22 2025 at 18:05):

They work fine if you use C-v C-j to enter a new line. It’s the above that acted out. :sweat_smile:

view this post on Zulip Brendan Hansknecht (Feb 23 2025 at 03:35):

Ah. Yeah, not sure I would call it a bug. More just not expected to work.

view this post on Zulip Brendan Hansknecht (Feb 23 2025 at 03:35):

But not fully sure

view this post on Zulip Kevin Hovsäter (Feb 23 2025 at 06:02):

I think it’s a bug in some way or another as it spits out red garbage forever and the red color leak out to the terminal prompt.


Last updated: Jul 06 2025 at 12:14 UTC