roc
roc copied to clipboard
Roc check and test hang when importing an external dependency
Issue based on this conversation in Zulip.
With these two files, roc check
and roc test
both hang, but roc format
succeeds. If I comment out the import in Example.roc
then all commands run fine. The svg package can be imported fine in an app, but it seems to break in a package. 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 that starts with a lowercase is imported in Example.roc
that the compiler hangs, so it seems to be something to do with trying to import external dependencies, and the error happens before it looks at the URL in main.roc
.
# 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