Stream: beginners

Topic: LSP Crashing


view this post on Zulip Tobias Steckenborn (Sep 13 2024 at 06:30):

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?

view this post on Zulip Luke Boswell (Sep 13 2024 at 07:19):

Similar to https://github.com/roc-lang/roc/issues/7049, and https://github.com/roc-lang/roc/issues/7001

view this post on Zulip Luke Boswell (Sep 13 2024 at 07:20):

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