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
Also, the svg
package can be imported fine in an app, but it seems to break in a package.
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
Thanks for the investigation @Hannes, can you make an issue for this?
Created #5654 :)
Last updated: Jul 05 2025 at 12:14 UTC