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

Question regarding BlueSerializable.lvclass in packed library #1

Open
ThatsTheEnd opened this issue Jan 11, 2024 · 2 comments
Open

Comments

@ThatsTheEnd
Copy link

Hey,
I have a question regarding the BlueSerializable.lvclass:
we usually package our code into packed project libraries. That means, during development, I sent my custom class as child item of the BlueSerializable.lvclass. In my case, the BlueJSONtextSerializer works fine with my class.
image

But when I pack the library, the namespace changes and so does the inheritance: the class loses its inheritance tree. And accordingly the BlueJSONtextSerializer dosen't work anymore, because the class doesn't inherit anymore from the BlueSerializeable.lvclass anymore.

image

How do you guys deal with it? is there a recommended workflow? Or a workaround?
Thanks for the info,
Niko

P.S.: saved in LV23
BlueSerializerExample.zip

@justiceb
Copy link
Owner

justiceb commented Jan 11, 2024

I have not tested this code at all with PPLs.
You are correct though, building a PPL will indeed change the class name.
Which will break this code, which is referencing classes by name.
Verrrrrry interesting.

I wonder how difficult it would be to solve this problem.
It might be as easy as removing the "p" suffix whenever it is discovered in a class name path.

@ThatsTheEnd
Copy link
Author

Hi Brent,
this might work, since I think the inheritance tree should be saved according to documentation.
Can you point me to where I that logic is done? I took a look shortly on the weekend, but was somehow too stupid to find it. Then I can go ahead and test it.
Cheers,
Niko

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