John O'Reilly
10/02/2021, 11:52 AMClaus Rørbech
10/02/2021, 12:29 PM0.6.0-SNAPSHOT
on Maven Central. Haven’t tried actually consuming the jvm-artifacts through Maven Central yet and only works on MacOS, but you are of course welcome to give it a try https://github.com/realm/realm-kotlin#using-snapshotsJohn O'Reilly
10/02/2021, 12:45 PMe: java.lang.AssertionError: Assertion failed
at org.jetbrains.kotlin.ir.util.AdditionalIrUtilsKt.getPropertyGetter(AdditionalIrUtils.kt:241)
at io.realm.compiler.RealmModelSyntheticPropertiesGeneration.addVariableProperty(RealmModelSyntheticPropertiesGeneration.kt:539)
at io.realm.compiler.RealmModelSyntheticPropertiesGeneration.addProperties(RealmModelSyntheticPropertiesGeneration.kt:137)
at io.realm.compiler.RealmModelLowering.lower(RealmModelLoweringExtension.kt:65)
at org.jetbrains.kotlin.backend.common.ClassLoweringVisitor.visitClass(Lower.kt:82)
John O'Reilly
10/02/2021, 12:56 PM"io.realm.kotlin:library-base:${Versions.realm}"
whereas I had been using
"io.realm.kotlin:library:${Versions.realm}"
I switched to that and getting different errors nowJohn O'Reilly
10/02/2021, 1:04 PMJohn O'Reilly
10/02/2021, 1:31 PMJohn O'Reilly
10/02/2021, 1:52 PMNabil
10/18/2021, 10:58 AM0.6.0
(instead of Snapshot). The released version contains a fix for JVM Windows platform.John O'Reilly
10/18/2021, 11:13 AMJohn O'Reilly
10/18/2021, 11:20 AMMain.kt
(in jvmMain
in common code). The Compose for Desktop app though is working. This is the error I'm seeing
Kotlin: [Internal Error] java.lang.IllegalStateException: The provided plugin io.realm.compiler.Registrar is not compatible with this version of compiler
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment$Companion.registerExtensionsFromPlugins$cli(KotlinCoreEnvironment.kt:618)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment$ProjectEnvironment.registerExtensionsFromPlugins(KotlinCoreEnvironment.kt:130)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment.<init>(KotlinCoreEnvironment.kt:170)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment.<init>(KotlinCoreEnvironment.kt)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment$Companion.createForProduction(KotlinCoreEnvironment.kt:431)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.createCoreEnvironment(K2JVMCompiler.kt:226)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:152)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:52)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:92)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:44)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:98)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1500)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:359)
at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:562)
at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:796)
at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:677)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:676)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.AbstractMethodError: Receiver class io.realm.compiler.Registrar does not define or inherit an implementation of the resolved method 'abstract void registerProjectComponents(com.intellij.mock.MockProject, org.jetbrains.kotlin.config.CompilerConfiguration)' of interface org.jetbrains.kotlin.compiler.plugin.ComponentRegistrar.
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment$Companion.registerExtensionsFromPlugins$cli(KotlinCoreEnvironment.kt:610)
... 28 more
John O'Reilly
10/18/2021, 11:21 AMNabil
10/18/2021, 2:21 PMuseIR = true
in the common/build.gradle.kts
?John O'Reilly
10/18/2021, 2:22 PMJohn O'Reilly
10/18/2021, 2:22 PMNabil
10/18/2021, 2:24 PMMainKt
from Studio (not from command line by specifying the classpath etc.) ...John O'Reilly
10/18/2021, 2:24 PMJohn O'Reilly
10/18/2021, 2:25 PMJohn O'Reilly
10/18/2021, 2:26 PMJohn O'Reilly
10/18/2021, 2:27 PMNabil
10/18/2021, 2:35 PMRun/Debug
configuration?
I have the following which isn't launching anythingNabil
10/18/2021, 2:36 PMMainKt
to dev.johnoreilly.common
John O'Reilly
10/18/2021, 2:43 PMJohn O'Reilly
10/18/2021, 2:43 PMJohn O'Reilly
10/18/2021, 2:44 PMJohn O'Reilly
10/18/2021, 2:45 PMJohn O'Reilly
10/18/2021, 2:46 PMNabil
10/18/2021, 2:47 PMJohn O'Reilly
10/18/2021, 2:57 PMModule with the Main dispatcher is missing.
Nabil
10/18/2021, 3:11 PMJohn O'Reilly
10/18/2021, 3:13 PMException in thread "main" java.lang.IllegalStateException: Module with the Main dispatcher is missing. Add dependency providing the Main dispatcher, e.g. 'kotlinx-coroutines-android' and ensure it has the same version as 'kotlinx-coroutines-core'
at kotlinx.coroutines.internal.MainDispatchersKt.throwMissingMainDispatcherException(MainDispatchers.kt:79)
at kotlinx.coroutines.internal.MissingMainCoroutineDispatcher.missing(MainDispatchers.kt:110)
at kotlinx.coroutines.internal.MissingMainCoroutineDispatcher.isDispatchNeeded(MainDispatchers.kt:94)
at kotlinx.coroutines.internal.DispatchedContinuationKt.resumeCancellableWith(DispatchedContinuation.kt:319)
at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:30)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.startCoroutineImpl(Builders.common.kt:192)
at kotlinx.coroutines.BuildersKt.startCoroutineImpl(Unknown Source)
at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:134)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56)
at kotlinx.coroutines.BuildersKt.launch(Unknown Source)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default(Builders.common.kt:47)
at kotlinx.coroutines.BuildersKt.launch$default(Unknown Source)
at dev.johnoreilly.common.data.repository.FantasyPremierLeagueRepository.<init>(FantasyPremierLeagueRepository.kt:71)
at dev.johnoreilly.common.di.KoinKt$commonModule$1$6.invoke(Koin.kt:38)
at dev.johnoreilly.common.di.KoinKt$commonModule$1$6.invoke(Koin.kt:38)
at org.koin.core.instance.InstanceFactory.create(InstanceFactory.kt:53)
at org.koin.core.instance.SingleInstanceFactory.create(SingleInstanceFactory.kt:46)
at org.koin.core.instance.SingleInstanceFactory$get$1.invoke(SingleInstanceFactory.kt:53)
at org.koin.core.instance.SingleInstanceFactory$get$1.invoke(SingleInstanceFactory.kt:51)
at org.koin.mp.KoinPlatformTools.synchronized(PlatformToolsJVM.kt:20)
at org.koin.core.instance.SingleInstanceFactory.get(SingleInstanceFactory.kt:51)
at org.koin.core.registry.InstanceRegistry.resolveInstance$koin_core(InstanceRegistry.kt:103)
at org.koin.core.scope.Scope.resolveValue(Scope.kt:223)
at org.koin.core.scope.Scope.resolveInstance(Scope.kt:211)
at org.koin.core.scope.Scope.get(Scope.kt:193)
at dev.johnoreilly.common.MainKt$main$1.invokeSuspend(Main.kt:44)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:277)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:87)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:61)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:40)
at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
at dev.johnoreilly.common.MainKt.main(Main.kt:11)
at dev.johnoreilly.common.MainKt.main(Main.kt)
John O'Reilly
10/18/2021, 3:14 PMMainScope
usage might have been added to repository class since last time that code had run beforeJohn O'Reilly
10/18/2021, 3:14 PMJohn O'Reilly
10/18/2021, 3:16 PMinit
block of FantasyPremierLeagueRepository
like that....John O'Reilly
10/18/2021, 3:26 PMJohn O'Reilly
10/18/2021, 3:33 PMval dispatcher = Executors
.newSingleThreadExecutor()
.asCoroutineDispatcher()
Dispatchers.setMain(dispatcher)
John O'Reilly
10/18/2021, 3:34 PMkotlinx-coroutines-test
to get setMain
(also had to update ktor jvm driver....not fully sure why but was using that one in PeopleInSpace as well for some reason)John O'Reilly
10/18/2021, 3:41 PMJohn O'Reilly
10/18/2021, 3:41 PMNabil
10/19/2021, 3:15 PMJohn O'Reilly
10/19/2021, 3:36 PM