https://kotlinlang.org logo
Title
z

zt

02/11/2023, 10:04 PM
I enabled context receivers functionality in my project but the generated code doesnt compile It generates this:
@org.komapper.annotation.KomapperExperimentalAssociation
context(org.komapper.core.dsl.query.EntityStoreContext)
fun zt.minkinator.data.Guild2.`markovConfig2`(
Which doesn't compile because
context
has to be above annotations
Expecting a top level declaration
t

Toshihiro Nakamura

02/11/2023, 11:32 PM
Thanks for the report. This is a bug. It seems that the context specification must come above the annotation as shown below.
context(org.komapper.core.dsl.query.EntityStoreContext)
@org.komapper.annotation.KomapperExperimentalAssociation
fun zt.minkinator.data.Guild2.`markovConfig2`(
I will release a fixed version soon.
z

zt

02/11/2023, 11:39 PM
thank
t

Toshihiro Nakamura

02/12/2023, 1:22 AM