Stream: beginners

Topic: cli-platform help


view this post on Zulip Georges Boris (May 19 2023 at 01:33):

Folks, can any one spot what is wrong with this code?
When running roc dev main.roc it prints out Dir.list... (I noticed this effect has a println! with this fixed string) but what intrigues me is that apparently nothing happens after that. None of my messages are printed out. Is Dir.list breaking the platform?

view this post on Zulip Brendan Hansknecht (May 19 2023 at 01:58):

Works for me

view this post on Zulip Brendan Hansknecht (May 19 2023 at 01:59):

Though the final ok! message is printed on the same line as the last file.

view this post on Zulip Brendan Hansknecht (May 19 2023 at 01:59):

This is on an m1 mac, which could maybe make the difference.

view this post on Zulip Brendan Hansknecht (May 19 2023 at 02:05):

Hmm....looks to be segfaulting on linux

view this post on Zulip Brendan Hansknecht (May 19 2023 at 02:06):

Don't have time to investigate now, but probably a platform bug somehow.

view this post on Zulip Anton (May 19 2023 at 08:36):

This might be the same as this issue

view this post on Zulip Georges Boris (May 19 2023 at 10:31):

@Anton yup! I think it is - do you think it looks like something easy for a Rust noob to take a stab at? :nerd:

view this post on Zulip Anton (May 19 2023 at 10:35):

It does look pretty involved, I also found the same issue on the main roc repo.
@Brendan Hansknecht has looked into it before.


Last updated: Jul 05 2025 at 12:14 UTC