-
Notifications
You must be signed in to change notification settings - Fork 635
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
Json.parse
fails on JS for types defined in commonTest
which extend from types defined in commonMain
.
#443
Comments
Still happens in Kotlin 1.3.31 and serialization 0.11.0. |
JVM tests still pass, but JavaScript tests now fail. This seems to be a `kotlinx.serialization` bug: Kotlin/kotlinx.serialization#443
I've been looking a bit more into what fails exactly. The JavaScript tests try to import name mangled
Within the dependent module, however, the base class is packaged, but not the
Furthermore, This seems like a compiler error? After modifying the generated JS files to export all |
Any plans on fixing this? This is currently keeping me locked on Kotlin |
@Whathecode I've reproduced the issue and currently investigating it |
@Whathecode Fix will be available in Kotlin 1.3.41 |
I am trying to upgrade my multiplatform project from Kotlin 1.3.21 and serialization 0.10.0 to Kotlin 1.3.30 and serialization 0.11.0.
After doing so, all my JVM tests pass, but many of my JS tests fail. I get errors along the lines of:
I have managed to create a small repro:
concreteClass_test()
passes, butstubConcreteClass_test()
fails onJson.parse
:The difference is
ConcreteClass
is defined incommonMain
, whereasStubConcreteClass
is defined incommonTest
. The classes are just empty dummy classes.Potentially related/relevant, since this seems a dependency issue. I copy JS test dependencies in
build.gradle
as follows, and this worked for the old version of Kotlin/serialization:Full code is available in the repro.
The text was updated successfully, but these errors were encountered: