Hi everyone, why is this problem and how can I sol...
# compiler
c
Hi everyone, why is this problem and how can I solve it? I just called
IrModuleFragment.transformChildrenVoid
🤯
Copy code
* What went wrong:
Execution failed for task ':api:compileKotlinJvm'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Internal compiler error. See log for more details

e: java.util.ConcurrentModificationException
	at java.base/java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1043)
	at java.base/java.util.ArrayList$Itr.next(ArrayList.java:997)
	at org.jetbrains.kotlin.ir.declarations.impl.IrFileImpl.transformChildren(IrFileImpl.kt:97)
	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitPackageFragment(IrElementTransformerVoid.kt:41)
    ......
	at org.jetbrains.kotlin.ir.declarations.impl.IrModuleFragmentImpl.transformChildren(IrModuleFragmentImpl.kt:45)
	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoidKt.transformChildrenVoid(IrElementTransformerVoid.kt:330)
	at com.meowool.sweekt.lazyinit.LazyInitTransformer.lower(LazyInitTransformer.kt:73)
	at com.meowool.sweekt.SweektComponentRegistrar$registerProjectComponents$1.generate(SweektCompilerPlugin.kt:86)
In addition, this error occurred in the kotlin-multiplatform project. It seems that it may be caused by the parallel compilation of different platforms?
Copy code
> Task :api:compileDebugKotlinAndroid
  ...
> Task :api:compileReleaseKotlinAndroid FAILED
  ...
> Task :api:compileKotlinJvm FAILED
But why doesn’t the compose multiplatform compiler have this problem? 😵
236 Views