I assume roc has a cache for modules. Is there a way to clean it for better reproducibility? A few times I've gotten a compiler runtime error that doesn't go away on reruns but moving its declarations into a different file compiles fine.
there actually is not a cache for modules at the moment, just for downloaded packages
all builds are from scratch
so it sounds like a bug with modules in general
do you have a branch that reproduces it somewhere?
Haha, I guess I'm checking roc files incorrectly?
# A.roc
module [a]
a = 3
roc check A.roc
prints out
An internal compiler expectation was broken.
This is definitely a compiler bug.
Please file an issue here: <https://github.com/roc-lang/roc/issues/new/choose>
Outstanding references to the derived module
Location: crates/compiler/load_internal/src/file.rs:3310:29
Again, works fine if I put the declaration into an app
file where I was now able to find a possible root cause of the original compiler runtime error https://github.com/roc-lang/roc/issues/7381
Does this mean plain modules cannot be checked or do you think this is a (platform-specific) issue?
Just a plain old bug I think
Should work....used to work
I think broke with module params
Last updated: Jul 06 2025 at 12:14 UTC