Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assetion failed: pin not found bug when using fletcher #10

Open
tsuza opened this issue Nov 9, 2024 · 3 comments
Open

Assetion failed: pin not found bug when using fletcher #10

tsuza opened this issue Nov 9, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@tsuza
Copy link

tsuza commented Nov 9, 2024

I don't know how to accurately reproduce this on a smaller scale, but on my document, once I fill my first index page and I create a new header, suddenly pinit fails to find a specific pin. What I've noticed is that it only happens with pinit-fletcher-edge.

  #pinit-fletcher-edge(
    fletcher, "example1", end: "example2", (1, 0), start-dx: -30pt, end-dx: 30pt, [$in$], bend: -100deg, "<->",
  )

Error: Assertion failed: Pin not found: "\"example1\"-30pt0pt-origin"

If it's needed to debug this bug, I'm willing to provide my Typst document privately.

@tsuza
Copy link
Author

tsuza commented Nov 10, 2024

This might be unrelated to Fletcher. It seems that it happens when pinit gets used at the end of a page, and you create a new header? Seemingly forcing a pagebreak() avoids the bug

@OrangeX4 OrangeX4 added the bug Something isn't working label Nov 21, 2024
@OrangeX4
Copy link
Owner

Since the implementation of pinit is hacky, you may have to manually add pagebreak, or any non-empty text.

@gamberoillecito
Copy link

I am experiencing this bug as well, moving the parts affected by the pins at the top of a new page as @tsuza suggested fixes the errors but is extremely annoying. I am using fletcher in other parts of the document but not together with pinit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants