roc-lang / basic-cli

A basic Command-Line Interface platform
Universal Permissive License v1.0
88 stars 30 forks source link

roc debug compiler triggers assert during glue generation #242

Open Anton-4 opened 3 months ago

Anton-4 commented 3 months ago

This needs to be investigated, use the debug compiler by replacing rocPkgs.cli in your flake.nix with rocPkgs.cli-debug and run ./jump-start.sh.

 + roc glue glue.roc crates ./platform/main.roc
thread 'main' panicked at crates/glue/src/types.rs:2225:5:
assertion `left == right` failed: glue_procs_by_layout for Layout { repr: Direct(Struct([InLayout(33), InLayout(37)])), semantic: None } was None, but the layout cache said its has_varying_stack_size was true
  left: false
 right: true
Anton-4 commented 3 months ago

Some context from Richard: https://roc.zulipchat.com/#narrow/stream/395097-compiler-development/topic/glue.20generation.20error/near/456138401