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

Recipe: Dependency loop detection #240

Merged
merged 5 commits into from
Aug 28, 2024
Merged

Recipe: Dependency loop detection #240

merged 5 commits into from
Aug 28, 2024

Conversation

Lotes
Copy link
Contributor

@Lotes Lotes commented Jun 20, 2024

I added a recipe for detecting any kind of dependency loop and resolving acyclic dependencies.

It is not specific to Langium, but it is one of these problems, that might need to be solved for several language features. Like recursion detection or recursive data structures.

The detection is implemented as a Langium validation. I think this is useful for users, that have never came across with such graph algorithms.

@Lotes Lotes temporarily deployed to pull-request-preview June 20, 2024 08:09 — with GitHub Actions Inactive
Copy link

github-actions bot commented Jun 20, 2024

PR Preview Action v1.4.6
Preview removed because the pull request was closed.
2024-08-28 12:36 UTC

Copy link
Contributor

@JohannesMeierSE JohannesMeierSE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for this recipe @Lotes!

It makes a lot of sense to have this recipe and I like the nice application for the hello-world example!

However, the first section with the motivation is not clear enough from my point of view. After reading the first sentences, it is not very clear, what the actual problem is.

@Lotes Lotes temporarily deployed to pull-request-preview June 24, 2024 12:07 — with GitHub Actions Inactive
@Lotes Lotes temporarily deployed to pull-request-preview August 6, 2024 14:52 — with GitHub Actions Inactive
@Lotes Lotes temporarily deployed to pull-request-preview August 6, 2024 15:06 — with GitHub Actions Inactive
@JohannesMeierSE
Copy link
Contributor

JohannesMeierSE commented Aug 8, 2024

Thanks @Lotes for the improvements! The two use cases are much more clear in the introduction now and I like the explicit examples. "approved" from my side 🙂

Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, can be merged after resolving the minor issues below.

hugo/content/docs/recipes/validation/dependency-loops.md Outdated Show resolved Hide resolved
hugo/content/docs/recipes/validation/dependency-loops.md Outdated Show resolved Hide resolved
@Lotes Lotes merged commit 4dfaa9b into main Aug 28, 2024
5 checks passed
@Lotes Lotes deleted the lotes/dependency-loops branch August 28, 2024 12:36
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

Successfully merging this pull request may close these issues.

3 participants