Skip to content

Grammar Import Loop/Race Condition? #879

Answered by msujew
snarkipus asked this question in Q&A
Discussion options

You must be logged in to vote

Thoughts?

Likely a bug somewhere in our generator. Probably related to copying rules into a "super grammar" which contains all used rules.

per the diagram, langium:watch only triggers on changes to grammar-top.langium ... is this expected?

Kind of, yes. It currently only listens to changes in the file that's referenced in the langium config. We should probably propagate any referenced files back to the file listener.

probably important - the generate fails once, then passes on the subsequent run (i.e. first run fails, second run passes)

Interesting. There's likely something weird going on in our generator, which tries to resolve references before the content has been processed as in…

Replies: 1 comment 2 replies

Comment options

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

@snarkipus
Comment options

snarkipus Jan 24, 2023
Collaborator Author

Answer selected by snarkipus
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