ribesg
04/25/2022, 12:42 PMkotlinx.serialization.Serializable
or is it just me? When I type @Serializable
and autocomplete it it writes @kotlinx.serialization.Serializable
instead of importing it. Doesn’t do it for any other class/annotation. Then if I try to hit Alt+Enter
on it, it doesn’t offer to add the import there either. Weirdmcpiroman
04/25/2022, 1:45 PMribesg
04/25/2022, 1:48 PMChris Lee
04/25/2022, 2:37 PMribesg
04/25/2022, 2:39 PMribesg
04/25/2022, 2:39 PMChris Lee
04/25/2022, 2:43 PMjava.io.Serializable
results in similar behaviour : java.io.Serializable
, though Alt-Enter does allow it to be imported. Doing the same for AutoCloseable
(java.lang) or `InputStream`(java.io, same as Serializable) automatically does the imported version. Would seem to indicate that Serializable
is somehow special.ribesg
04/25/2022, 2:45 PMChris Lee
04/25/2022, 2:46 PMkotlinx.serialization.Serializable
- on initial use it pulls in as fully qualfied, but I do have the option (Alt-Enter) to import. However, if I’ve already imported javax.io.Serializable
, there is no option to import the kotlinx annotation. fwiw these tests are Gradle Kotlin DSL plugins (published Kotlin projects).Chris Lee
04/25/2022, 2:48 PMribesg
04/25/2022, 2:49 PMjavax
isn’t a thing on iOS so it’s unrelatedChris Lee
04/25/2022, 2:49 PMjava.io.Serializable
.ribesg
04/25/2022, 2:50 PMjava
isn’t either 😄 It also happens in common code and in an empty file with just a data class, like the first and only import added should be kotlinx.serialization.Serializable
and it does that insteadChris Lee
04/25/2022, 2:54 PMribesg
04/25/2022, 2:58 PMChris Lee
04/25/2022, 3:02 PMzeugederunity
04/26/2022, 4:34 PMkotlinx.serialization.*
, io.ktor.*
kotlinx.coroutines.*
and two internal MPP libraries.
Invalidating caches does not work, deleting the folders don't work too.zeugederunity
04/26/2022, 4:37 PM