Stream: beginners

Topic: Using packages in platforms


view this post on Zulip mainrs (Nov 29 2023 at 12:56):

I'd like to use the JSON package available here. In my platform code I imported it inside the packages declaration and import it inside an interface later to use it. However, issuing roc run hands indefinitely with my CPU ramping up in load without any output.

I've uploaded my code to a GitHub repository: https://github.com/mainrs/arachnids
https://github.com/mainrs/arachnids/blob/65931e48c5532d2d8fef6795a3d2688bd581d89f/api/Http.roc#L36-L38

The json is imported at the top of the file.

view this post on Zulip Anton (Nov 29 2023 at 13:02):

Does it work if you do roc run myfile.roc --linker=legacy?

view this post on Zulip Richard Feldman (Nov 29 2023 at 13:36):

this is a known bug - @Folkert de Vries and I are planning to look into it on Monday!

view this post on Zulip mainrs (Nov 29 2023 at 13:48):

Anton said:

Does it work if you do roc run myfile.roc --linker=legacy?

This doesn't change anything. It still runs on full load indefinitely without any output.

view this post on Zulip mainrs (Nov 29 2023 at 13:48):

Richard Feldman said:

this is a known bug - Folkert de Vries and I are planning to look into it on Monday!

Is there an issue I can follow or something to get notified on progress regarding this?

view this post on Zulip Richard Feldman (Nov 29 2023 at 15:03):

yep! https://github.com/roc-lang/roc/issues/5598


Last updated: Jul 06 2025 at 12:14 UTC