Stream: beginners

Topic: Check and test commands hang


view this post on Zulip Hannes (Jul 10 2023 at 08:56):

I belive this code is valid, but I'm not sure if I'm importing the svg package correctly in Example.roc. Either way, I think it's a compiler bug. With these two files, roc check and roc test both hang, but if I comment out the import in Example.roc then both commands run fine.

# main.roc
package "example"
    exposes [Example]
    packages {svg: "https://github.com/Hasnep/roc-svg/releases/download/v0.0.5/KNa42p4AkdagXotFeHJUXxHyM2Q2i8rZQ9twQ9lT9tw.tar.br"}
# Example.roc
interface Example exposes [f] imports [svg.Svg]

f = \x -> x

expect
    f 10 == 10

view this post on Zulip Hannes (Jul 10 2023 at 08:57):

Also, the svg package can be imported fine in an app, but it seems to break in a package.

view this post on Zulip Hannes (Jul 10 2023 at 08:58):

Oh, and the actual URL used doesn't matter, it does the same thing with any URL, path or even when the package is commented out as well, it's only when something is imported in Example.roc that the compiler hangs

view this post on Zulip Anton (Jul 10 2023 at 09:36):

Thanks for the investigation @Hannes, can you make an issue for this?

view this post on Zulip Hannes (Jul 10 2023 at 10:05):

Created #5654 :)


Last updated: Jul 05 2025 at 12:14 UTC