Stream: beginners

Topic: ✔ Caching?


view this post on Zulip joshi (Dec 04 2023 at 09:19):

Hi!

Does the Roc compiler cache any build artifacts?

I made a change that caused the compiler to crash with

thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', crates/compiler/mono/src/ir.rs:6140:56

(RUST_BACKTRACE does not print anything useful), so I restored the file to a version I know worked previously, but the compiler still crashes with the same error.

view this post on Zulip joshi (Dec 04 2023 at 09:21):

Nvm, I'm a dummy :sweat_smile:

roc test didn't crash and reported this error instead:

── NOT EXPOSED ──────────────────────────────────────────── solutions/day4.roc ─

The Result module does not expose `tr`:

39│      id <- idStr |> Str.trim |> Str.toNat |> Result.tr

Fixing that one also fixed roc run :big_smile:

view this post on Zulip Notification Bot (Dec 04 2023 at 09:21):

joshi has marked this topic as resolved.


Last updated: Jul 06 2025 at 12:14 UTC