Skip to content

Conversation

LordYuuma
Copy link
Collaborator

This patch adds the immediate dependencies of a typelib to the module-uses of the module generated from it and installs a duplicate handler, which reports duplicates as Guile-GI warnings. We should try to resolve those at some point, and especially find out why our generics sometimes won't merge.

@LordYuuma LordYuuma requested a review from spk121 October 3, 2020 13:51
@spk121
Copy link
Owner

spk121 commented Oct 28, 2020

I dropped the ball on this. Sorry. Given the discussion occurring in #96 , is this still good to go?
If so, looks good to me.

@LordYuuma
Copy link
Collaborator Author

This is somewhat adjacent to #96, but can not solve it completely. I am not entirely sure, but I believe this solves a slightly different issue, wherein loading one typelib and creating all its definitions can leave you with an incomplete view on "the world" as defined through typelib dependencies.

Copy link
Collaborator Author

@LordYuuma LordYuuma left a comment

Choose a reason for hiding this comment

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

Apparently there's a really old review I ought to submit.

((module? module) module)
((list? module)
(let ((m (resolve-module module)))
(set-module-duplicates-handlers! m %gig-duplicate-handlers)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Slight oversight, we should first check whether m is a fresh module.

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.

2 participants