$ roc check headings.roc
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
thread 'main' panicked at crates/compiler/load_internal/src/file.rs:3292:29:
Outstanding references to the derived module
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Output from roc test:
$roc test headings.roc
thread 'main' panicked at crates/compiler/load_internal/src/file.rs:365:85:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Note that roc test on the whole project just works:
This crash happens with the latest nightly build: roc_nightly-linux_x86_64-2024-06-22-03eadc2
Was also tested with a nightly build from about a week ago.
Project that demonstrates the issue (branch: roc-issue-6835): https://github.com/ashleydavis/book-of-examples/tree/roc-issue-6835/gallery/roc
The crash happens under Ubuntu/WSL2/Windows 11.
Output from
roc check
:Output from
roc test
:Note that
roc test
on the whole project just works: