Is this known to happen (vs code extension in case it‘s relevant)?
[Info - 08:27:48] Roc language server initialized.
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>
a Expr::TrySuffix expression was not completely removed in desugar_value_def_suffixed
Location: crates/compiler/can/src/expr.rs:1125:40
If not what details would be relevant for the issue?
Similar to https://github.com/roc-lang/roc/issues/7049, and https://github.com/roc-lang/roc/issues/7001
Relevant impl is in unwrap_suffixed_expression
in crates/compiler/can/src/suffixed.rs
if you would like to explore further. It's all contained to that one function -- which descends through the AST and desugars that expression.
Last updated: Jul 06 2025 at 12:14 UTC