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

"Compiler error" when updating document with new block containing annotations #24

Open
tgelu opened this issue Jun 5, 2019 · 0 comments

Comments

@tgelu
Copy link

tgelu commented Jun 5, 2019

I made a small example where I try to update a Parsed with Edit.replace where the new block contains a Mark.New.annotation. See it here: https://ellie-app.com/5KqpQwR9trLa1 --- you can click the text and see the error.

COMPILER ERROR
Oh boy, this looks like a  compiler error

If you have time, could you file an issue on the elm-markup respository(https://github.com/mdgriffith/elm-markup) describing how you got here?

I can update the document with Edit.replace when I do it without the new block containing any Mark.New.annotation.

I tried to track the error and at least my guess is that it's around here in Mark.Internal.Description.

I think that because here the (recordName, inline.kind, blockKind) resolves to (Nothing, SelectText _, AnnotationNamed "link") in the case of the linked ellie example, which I take it to mean that somehow the annotation is created without its record, which matches the DescribeNothing used here.
I might completely misunderstand the code though, but the issue remains, I cannot figure out how to replace a block with another if I have annotations :(.

Let me know if I can help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant