Fix extending class in subpackage.#92
Conversation
Use base class package name rather than module name because MATLAB requires it to be fully qualified.
|
This fixes #55 or at least part of it. |
|
Thank you for your contribution! |
|
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. |
|
CC @traversaro |
|
@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. |
|
@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. |
|
So, should this commit be reverted then? |
|
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. |
- 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
This reverts commit 2a0c344, i.e. jaeandersson#92 due to problems mentioned there.
Use base class package name rather than module name because
MATLAB requires it to be fully qualified.