Skip to content

Weird runtime crash #1564

Answered by stephencelis
RuiAAPeres asked this question in Q&A
Oct 24, 2022 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

@RuiAAPeres Hard to pinpoint the issue without more context, but a few things stand out:

  1. What does the state look like that each case path refers to (e.g. what does the enum look like that contains State.noCode and State.authenticated)?
  2. When you got the crash to "move," were you incrementally compiling? Was the crash consistent across cleaning your build folder and running fresh?
  3. If you define your case paths from scratch using CasePath.init(embed:extract:), does everything work just fine?

There are some known bugs in case path reflection. While they are generally edge cases involving existentials and enums with one case, you might be hitting one here. We'd love to track them down (or b…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@RuiAAPeres
Comment options

@stephencelis
Comment options

Answer selected by RuiAAPeres
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants