Stream: beginners

Topic: roc hangs with multiple packages


view this post on Zulip Luke Boswell (Oct 13 2022 at 07:07):

I added a new issue #4319 for importing multiple packages. Currently roc hangs with both roc check and roc run for the following. I am not sure if this is is a supported feature, or perhaps I am not using the packages and imports correctly.

app "hangs"
    packages { pf: "cli-platform/main.roc", ps: "Parser.roc" }
    imports [
        pf.Program.{ Program },
        pf.Stdout,
        ps.Parser.{ Parser },
    ]
    provides [main] to pf

main : Program
main =
    Stdout.line "This code hangs due to Parser.roc package"
    |> Program.quick

view this post on Zulip Anton (Oct 13 2022 at 07:39):

I've replied on the github issue.

view this post on Zulip Luke Boswell (Oct 13 2022 at 09:04):

Ahk thank you. Do you think it would be worthwhile if I add this into the tutorial docs? Also, is it an issue that it hangs? I would have expected a helpful error message.

view this post on Zulip Brendan Hansknecht (Oct 13 2022 at 13:36):

Roc hanging or crashing without a useful error message is always an issue. May not be top priority, but they are paramount to the long term experience.

view this post on Zulip Anton (Oct 13 2022 at 18:02):

This would indeed be good to add to the tutorial @Luke Boswell :)

view this post on Zulip Luke Boswell (Oct 13 2022 at 20:25):

Updated TUTORIAL.md and created PR #4320.


Last updated: Jul 06 2025 at 12:14 UTC