Skip to content

Need help with EXC_BAD_ACCESS (not sure if it's this library) #275

Answered by tgrapperon
alexito4 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @alexito4! According to my tests, it doesn't crash if I'm creating a new parser each time:

var myClippingsParser: some Parser<Substring, [Highlight]> {
  Many {
      highlightParser
  } separator: {
      highlightSeparator
      Whitespace(1, .vertical)
  } terminator: {
      highlightSeparator
      Whitespace()
      End()
  }
}

I also had to do the same trick to get the suite to pass globally:
https://github.com/alexito4/kindle-highlights/compare/update-title-author...tgrapperon:kindle-highlights:update-title-author?expand=1
My long-shot guess is that this is related to top-level declarations, and that it would probably work if stored in some struct value (statically or not). I'…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@alexito4
Comment options

@tgrapperon
Comment options

@stephencelis
Comment options

@alexito4
Comment options

@alexito4
Comment options

Answer selected by alexito4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants