-
Notifications
You must be signed in to change notification settings - Fork 630
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
1.1.0-RC breaks backward compatiblity on JS-IR #1331
Comments
I tried to find a workaround for that but seems to be impossible. The only way is to recompile all dependencies with 1.1.0 |
Seems to be a blocker for release :(. I can't move forward because new codebase reliese on 1.4.30 and serialization 1.1.0 but xmlutil is still on 1.0.1 and there are no ways to make them work together. |
I've had a quick look, I'll have to figure out how to make inline classes work properly. There is nice user documentation, but not for format writers. I'll manage though ;-), but just using the same decoder/encoder clearly doesn't work. |
Another issue seems to be that I can't get 1.4.30 to actually generate proper code for inline classes (to test it all) |
I've dig into the problem for a bit and found out that the unbound symbol in question is an overload of However, we intended to delete this function anyway and it was deprecated since 1.0 (or even earlier) so it looks like the root of the problem is that one of the dependencies or the project itself still used this deprecated function. I've searched in the |
@pdvrieze What do you mean by that? Note, inline classes in serialization work only with IR compilers |
I found that, although the error message could be more helpful. |
@sandwwraith I've enabled usage of IR on test suite compilations. That fixes the inline issue. After implementing the inline functions the library compiles correctly (and I'm also correcting the helpers function to explicitly call the 4 arg version). The helpes file mentioned is part of the util library that contains various bits and bops to help with serialization, but which isn't required for xml serialization itself. |
I'm facing a similar issue, but compiling for iOS. When upgrading to 1.1.0 and running packForXcode task I get the following:
From what I could understand this is the same symbol, right? |
@brunnobraga Yes, it is |
We have the same issue when compiling on iOS. Tested on version: 1.1.0. Error message:
|
Unfortunately, we can't do much at this point since 1.0.1 and 1.1.0 are already released. The only recommendation to fix this is to make sure that you have only one serialization version in your transitive dependencies (i.e. update libraries versions you use so they also depend on serialization 1.1.0) From our side, we'll try our best to prevent such a situation from happening again |
Describe the bug
Failure to compile when using JS/common library with serialization
1.0.1
from JS-IR with serialization1.1.0-RC
Error stack trace
Serialization is not mentioned in the stacktrace. But switching the serialization version obviously triggers the behavior. One can reproduce it here by removing
("1.0.1")
and rolling back to plugin - default1.1.0-RC
. The library relies on xmlutil 0.80.1, which uses older serialization. With1.0.1
it compiles, but could not be consumed in project with newer version.Environment
The text was updated successfully, but these errors were encountered: