Gotta catch them all! https://github.com/roc-lang/roc/issues/8559
main! = || {
if True {
x = 0
_y = x
}
}
If we fix the segfault in https://github.com/roc-lang/roc/issues/8553 we’ll have part 1 of AoC day 2 working. But to get part 2 working, we’d need to fix this e_closure error too I think. I haven’t found a workaround.
I'm on this!
https://github.com/roc-lang/roc/pull/8564 fixed this
Thanks! It solved the errors on list equality. However the e_closure error on the example above is still present. https://github.com/roc-lang/roc/issues/8559
Also, I found another bug that triggers when there is a comparison of string list. I opened another issue https://github.com/roc-lang/roc/issues/8567
Here is the example:
main! = || {
a = ["a"]
if (a == a) {
Stdout.line!("Ok")
} else {
Stdout.line!("PROBLEM")
}
}
This example gives me:
Roc crashed: Failed to compare numeric scalars
Created this PR which fixes the e_closure error: https://github.com/roc-lang/roc/pull/8571
Ok, I also have the fix for that string comparison error. Preparing another PR now.
Here is the second PR: https://github.com/roc-lang/roc/pull/8572
I’m now so close to getting AoC day2 working and now just hit a new segfault XD. I’ll try to minimize it after dinner.
Last updated: Dec 21 2025 at 12:15 UTC