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

Fix extending class in subpackage. #92

Merged
merged 1 commit into from
Jan 24, 2018

Conversation

yuriy-kozlov
Copy link

Use base class package name rather than module name because
MATLAB requires it to be fully qualified.

Use base class package name rather than module name because
 MATLAB requires it to be fully qualified.
@yuriy-kozlov
Copy link
Author

This fixes #55 or at least part of it.

@jaeandersson jaeandersson merged commit 59e0f55 into jaeandersson:matlab Jan 24, 2018
@jaeandersson
Copy link
Owner

Thank you for your contribution!

@nunoguedelha
Copy link

This PR seems to break previous configurations for generating bindings, typically in simple cases where we generate all bindings for a single module, into a single package folder, both with same name. Here is an example of issue: robotology-dependencies#3.
@yuriy-kozlov @jaeandersson it would be nice to have some more details or a clear explanation of the impacts on the module definition (in the module file <module>.i) or the generated tree structure.

@nunoguedelha
Copy link

CC @traversaro

@yuriy-kozlov
Copy link
Author

@nunoguedelha do you specify the package= option in %module? I have it everywhere and I think missing it is triggering this bug. It should be optional, of course, so I can work on a fix.

@nunoguedelha
Copy link

@yuriy-kozlov thank you, I'll try it ASAP and let you know. Of course, if you can make it optional it would be great, because in our case I think the option would be over-killing, since we always have a single module per package.

@jaeandersson
Copy link
Owner

So, should this commit be reverted then?

@nunoguedelha
Copy link

Personally, I realize I won't have time to run further tests following @yuriy-kozlov recommendations. I was hopping we could get a fix from him for making the feature optional, and so backward compatible with old configurations. Otherwise I suggest to revert the commit.

Alzathar added a commit to Alzathar/swig that referenced this pull request Dec 28, 2019
 - Based on the main Swig project
 - Using the content of the PR swig#159
 - But the PR jaeandersson#92 was removed
   as its breaks class inheritance
KrisThielemans added a commit to KrisThielemans/swig that referenced this pull request Jul 30, 2021
This reverts commit 2a0c344, i.e.
jaeandersson#92 due to problems mentioned
there.
@KrisThielemans KrisThielemans mentioned this pull request Jul 30, 2021
9 tasks
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