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

Diamond imports don't seem to work correctly? #1

Open
bojidar-bg opened this issue Oct 30, 2023 · 1 comment
Open

Diamond imports don't seem to work correctly? #1

bojidar-bg opened this issue Oct 30, 2023 · 1 comment

Comments

@bojidar-bg
Copy link

Description: Splitting a file into multiple files that import each other ends up breaking rule-s despite the project executing. It looks as if the different files are referring to the same types but to different node definitions, and hence the net never matches anything in order to start executing -- but it might be something else instead.

To reproduce: In the linked Gist, uncomment all the import lines and comment all the require lines. Despite everything parsing and executing, for some odd reason, rule-s won't match. I have not yet tried to debug the issue further, but I am going to guess that either the fact that I have "diamond" dependencies between files (A depends on B and C that both depend on D) manages to break the import system.

Issue found while developing https://gist.github.com/bojidar-bg/6c52d1f1ed3fb3a583aaff9a184687fe

@xieyuheng
Copy link
Member

@bojidar-bg Thanks for this issue, sorry that I come to this late (somehow I fail to be notified by github).

I will investigate this problem.

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

2 participants