Hi everyone! Does anyone know if <https://github.c...
# serialization
m
Hi everyone! Does anyone know if https://github.com/Kotlin/kotlinx.serialization is the offical repository for this project? I'm trying to find out if using kotlinx.serialization is viable in the long term. We're stuck on kotlin 1.3.31 due to issues with kotlinx.serialiation in our multi-platform project and I have no idea if/when they will be resolved. There are no answers in the github issue tracker for the problems that affect us. I was wondering if there is a better place to report issues since there is not much dev activity in the repository or issue tracker on github.
r
What problems do you have? Staying behind on Kotlin version when using these kind of official but “Moving Fast” libs is dangerous
To answer your questions: 1) See topic 2) It’s basically the only way to go 3) Make sure your issues are real and there are no workaround available
m
Hey @ribesg 1) and 2): I thought so 🙂 3) An 'java.lang.IndexOutOfBoundsException' during compilation keeps us from using kotlin 1.3.50 (issues https://github.com/Kotlin/kotlinx.serialization/issues/527 and/or https://github.com/Kotlin/kotlinx.serialization/issues/563).
r
I got this once I think and there’s a workaround
Just don’t use typealias and put some TODO comment there pointing to the github issues
(In my case I didn’t really need typealias)
I also had an issue with a property initialized with other properties values. I replaced that property with a property without backing field
m
Removing the typealiases is sadly not an option. Our codebase is already quite big and uses them extensivley 😕 The second issue you've mentioned is new to me. I'll check if that's something we're doing as well. Thanks!
r
Well the other option for typealiases is to actually dive into kotlinx.serialization, find the issue and contribute to it but... Good luck with that 🙂
m
hehe yeah, that thought crossed my mind. But I have no idea how to set up a dev environment that would allow me to debug gradle, kotlin compiler plugins and konan. Would be a fun weekend(s) project though 😉
s
Sorry about that, I'll take a look at that tickets again. It's really easy how they can slip out of mind...
👍 2
m
No worries. The project is already so useful that we enjoy using it even on
kotlin 1.3.31
😄
In connection with compiler/plugin issues in general, it would be helpful if there were a guide that describes how to debug such problems. One that explains how to setup gradle, kotlin, konan, kotlinx.serialization, etc. in such a way that allows us to give you more useful feedback (or even bugfixes)
Hey @sandwwraith! Have you had a chance to look at the issues?
s
Not yet 😞 . But I don't think that one with typealiases would be hard to fix
l
It looks like it's been fixed in 1.3.60 judging from the GitHub issues. Can you confirm @Marc Dietrichstein?
m
Works like a charm 🙂 We were finally able to upgrade to 1.3.60. Thanks alot @louiscad
👌 1